Client LuaCsForBarotrauma
Enums.cs
1 using System;
2 
3 namespace Barotrauma
4 {
5  public enum TransitionMode
6  {
7  Linear,
8  Smooth,
9  Smoother,
10  EaseIn,
11  EaseOut,
13  }
14 
15  public enum SelectedSubType
16  {
17  Shuttle,
18  Sub,
19  EnemySub
20  }
21 
25  public enum ActionType
26  {
30  Always = 0,
34  OnPicked = 1,
38  OnUse = 2,
42  OnSecondaryUse = 3,
46  OnWearing = 4,
50  OnContaining = 5,
54  OnContained = 6,
58  OnNotContained = 7,
62  OnActive = 8,
66  OnFailure = 9,
70  OnBroken = 10,
74  OnFire = 11,
78  InWater = 12,
82  NotInWater = 13,
87  OnImpact = 14,
91  OnEating = 15,
96  OnDamaged = 16,
100  OnSevered = 17,
104  OnProduceSpawned = 18,
108  OnOpen = 19,
112  OnClose = 20,
116  OnSpawn = 21,
120  OnSuccess = 22,
124  OnAbility = 23,
128  OnInserted = 24,
132  OnRemoved = 25,
136  OnDeath = OnBroken
137  }
138 
139  public enum AbilityEffectType
140  {
141  Undefined,
142  None,
143  OnAttack,
145  OnAttacked,
158  OnRagdoll,
159  OnRoundEnd,
163  OnGiveOrder,
177  OnItemPicked,
185  }
186 
194  public enum StatTypes
195  {
199  None,
200 
205 
210 
215 
220 
225 
230 
235 
240 
245 
250 
255 
260 
264  WalkingSpeed,
265 
270 
275 
281 
287 
293 
298 
303 
308 
313 
318 
323 
328 
333 
338 
343 
347  RepairSpeed,
348 
353 
358 
363 
368 
373 
378 
383 
388 
394 
399 
404 
409 
414 
419 
424 
429 
434 
439 
445 
451 
457 
462 
468 
473 
479 
485 
490 
495 
500 
505 
510 
515 
520 
525 
530 
535 
541 
546 
551 
556 
561 
566 
572 
576  CPRBoost,
577 
582 
587 
592 
597 
602 
607 
612 
617  }
618 
619  internal enum ItemTalentStats
620  {
621  None,
622  DetoriationSpeed,
623  BatteryCapacity,
624  EngineSpeed,
625  EngineMaxSpeed,
626  PumpSpeed,
627  ReactorMaxOutput,
628  ReactorFuelConsumption,
629  DeconstructorSpeed,
630  FabricationSpeed,
631  ExtraStackSize,
632  [Obsolete("Use PumpSpeed instead.")]
633  PumpMaxFlow = PumpSpeed,
634  }
635 
639  [Flags]
640  public enum AbilityFlags
641  {
645  None = 0,
646 
650  MustWalk = 0x1,
651 
655  ImmuneToPressure = 0x2,
656 
660  IgnoredByEnemyAI = 0x4,
661 
666 
670  CanTinker = 0x10,
671 
676 
680  TinkeringPowersDevices = 0x40,
681 
685  GainSkillPastMaximum = 0x80,
686 
691 
695  AllowSecondOrderedTarget = 0x200,
696 
700  AlwaysStayConscious = 0x400,
701 
706  CanNotDieToAfflictions = 0x800
707  }
708 
709  [Flags]
710  public enum CharacterType
711  {
712  Bot = 0b01,
713  Player = 0b10,
714  Both = Bot | Player
715  }
716 
718  {
719  Low,
720  Medium,
721  High,
722  }
723 
725  {
726  Off,
727  Low,
728  Medium,
729  High,
730  }
731 
733  {
734  Low,
735  Medium,
736  High,
737  Hellish
738  }
739 
740  public enum NumberType
741  {
742  Int,
743  Float
744  }
745 
746  public enum ChatMode
747  {
748  None,
749  Local,
750  Radio
751  }
752 
754  {
756  PlayerChoice,
757  }
758 }
NumberType
Definition: Enums.cs:741
StartingBalanceAmountOption
Definition: Enums.cs:718
PvpTeamSelectionMode
Definition: Enums.cs:754
AbilityFlags
AbilityFlags are a set of toggleable flags that can be applied to characters.
Definition: Enums.cs:641
@ MustWalk
Character will not be able to run.
@ CanNotDieToAfflictions
Prevents afflictions on the character from dropping the characters vitality below the kill threshold....
@ GainSkillPastMaximum
Allows the character to gain skills past 100.
@ RetainExperienceForNewCharacter
Allows the character to retain experience when respawning as a new character.
@ CanTinker
Character is able to tinker with items.
@ AlwaysStayConscious
Character will stay conscious even if their vitality drops below 0.
@ AllowSecondOrderedTarget
Allows CharacterAbilityApplyStatusEffectsToLastOrderedCharacter to affect the last 2 characters order...
@ ImmuneToPressure
Character is immune to pressure.
@ MoveNormallyWhileDragging
Character can drag corpses without a movement speed penalty.
@ TinkeringPowersDevices
Allows items tinkered by the character to consume no power.
@ IgnoredByEnemyAI
Character won't be targeted by enemy AI.
@ CanTinkerFabricatorsAndDeconstructors
Character is able to tinker with fabricators and deconstructors.
ActionType
ActionTypes define when a StatusEffect is executed.
Definition: Enums.cs:26
@ OnSevered
Executes when the limb gets severed. Only valid for limbs.
@ InWater
Executes continuously when the entity is submerged. Valid for items and characters.
@ OnInserted
Executes once when a specific Containable is placed inside an ItemContainer. Only valid for Containab...
@ NotInWater
Executes continuously when the entity is NOT submerged. Valid for items and characters.
@ OnFire
Executes continuously when the entity is within the damage range of fire. Valid for items and charact...
@ OnSecondaryUse
Executes when an item is held and the aim key is held. Only valid for items.
@ OnSpawn
Executes when the entity spawns. Valid for items and characters.
@ OnAbility
Executes when an Ability (an effect from a talent) triggers the status effect. Only valid in Abilitie...
@ OnProduceSpawned
Executes when a Items.Components.Growable produces an item (e.g. when a plant grows a fruit)....
@ OnContained
Executes continuously when the item is contained in some inventory. Only valid for items.
@ OnRemoved
Executes once when a specific Containable is removed from an ItemContainer. Only valid for Containabl...
@ OnUse
Executes when the item is used. The meaning of "using" an item depends on the item,...
@ OnImpact
Executes when the entity hits something hard enough. For items, the threshold is determined by ItemPr...
@ OnBroken
Executes when using the item's condition drops to 0. Only valid for items.
@ OnWearing
Executes continuously while the item is being worn. Only valid for wearable items.
@ Always
Executes every frame regardless of the state of the entity.
@ OnSuccess
Executes when using the item succeeds based on a skill check. Only valid for items.
@ OnDeath
Executes when the character dies. Only valid for characters.
@ OnEating
Executes continuously when the character is eating another character. Only valid for characters.
@ OnPicked
Executes when the item is picked up. Only valid for items.
@ OnClose
Executes when a Items.Components.Door is closed. Only valid for doors.
@ OnNotContained
Executes continuously when the item is NOT contained in an inventory. Only valid for items.
@ OnFailure
Executes when using the item fails due to a failed skill check. Only valid for items.
@ OnDamaged
Executes when the entity receives damage from an external source (i.e. an affliction that increases i...
@ OnContaining
Executes continuously when a specific Containable is inside an ItemContainer. Only valid for Containa...
@ OnOpen
Executes when a Items.Components.Door is opened. Only valid for doors.
@ OnActive
Executes continuously when the item is active. The meaning of "active" depends on the item,...
WorldHostilityOption
Definition: Enums.cs:733
TransitionMode
Definition: Enums.cs:6
AbilityEffectType
Definition: Enums.cs:140
SelectedSubType
Definition: Enums.cs:16
PatdownProbabilityOption
Definition: Enums.cs:725
CharacterType
Definition: Enums.cs:711
StatTypes
StatTypes are used to alter several traits of a character. They are mostly used by talents.
Definition: Enums.cs:195
@ SightRangeMultiplier
Modifies how far the character can be seen from (can be used to make the character easier or more dif...
@ SkillGainSpeed
Increases the speed at which the character gains skills by a percentage.
@ HelmSkillBonus
Boosts helm skill by a flat amount.
@ RepairToolStructureRepairMultiplier
Increases the repair speed of repair tools that fix submarine walls by a percentage.
@ MedicalItemApplyingMultiplier
Increases the strength of afflictions the character applies to other characters via medicine by a per...
@ LockedTalents
Can be used to prevent certain talents from being unlocked by specifying the talent's identifier via ...
@ FabricationSpeed
Decreases the time it takes to fabricate items on fabricators operated by the character by a percenta...
@ TurretPowerCostReduction
Decreases the power consumption of submarine turrets operated by the character by a percentage.
@ GeneticMaterialRefineBonus
Boosts the condition of genes combined by the character by a flat amount.
@ MissionMoneyGainMultiplier
Increases how much money the character gains from missions by a percentage.
@ MeleeAttackMultiplier
Increases the damage dealt by melee weapons held by the character by a percentage.
@ WeaponsSkillGainSpeed
Increases the speed at which the character gains weapons skill by a percentage.
@ MechanicalSkillGainSpeed
Increases the speed at which the character gains mechanical skill by a percentage.
@ ElectricalSkillBonus
Boosts electrical skill by a flat amount.
@ InventoryExtraStackSize
Used to increase how much items can stack in the characters inventory.
@ WeaponsSkillBonus
Boosts weapons skill by a flat amount.
@ PoisonMultiplier
Increases the strength of afflictions the character applies to other characters via medicine by a per...
@ AttackMultiplier
Increases how much damage the character deals via all attacks by a percentage.
@ RepairToolDeattachTimeMultiplier
Increase the detach speed of items like minerals that require a tool to detach from the wall by a per...
@ MaxAttachableCount
Limits how many of a certain item can be attached to the wall in the submarine at the same time....
@ ExtraLevelGain
Whenever the character's skill level up add a flat amount of more skill levels to the character.
@ MedicalSkillGainSpeed
Increases the speed at which the character gains medical skill by a percentage.
@ ElectricalSkillGainSpeed
Increases the speed at which the character gains electrical skill by a percentage.
@ FlowResistance
Increases the resistance to pushing force caused by flowing water by a percentage....
@ MaximumHealthMultiplier
Increases character's maximum vitality by a percentage.
@ SwimmingSpeed
Increases the character's swimming speed by a percentage.
@ DebuffDurationMultiplier
Decreases how long it takes for debuff applied to the character decay over time by a percentage....
@ BallastFloraDamageMultiplier
Increases how much damage the character deals to ballast flora by a percentage.
@ GeneticMaterialTaintedProbabilityReductionOnCombine
Reduces the chance to taint a gene when combining genes by a percentage. Tainting probability can not...
@ RangedSpreadReduction
Decreases the spread of ranged weapons held by the character by a percentage.
@ TinkeringStrength
Increases the effectiveness of the character's tinkerings by a percentage. Tinkering strength affects...
@ ElectricalRepairSpeed
Increases the repair speed of the character when repairing electrical items by a percentage.
@ DeconstructorSpeedMultiplier
Increase deconstruction speed of deconstructor operated by the character by a percentage.
@ HoldBreathMultiplier
Increases the time it takes for the character to pass out when out of oxygen.
@ MedicalSkillBonus
Boosts medical skill by a flat amount.
@ MovementSpeed
Increases both walking and swimming speed of the character by a percentage.
@ DualWieldingPenaltyReduction
Reduces the dual wielding penalty by a percentage.
@ TurretAttackSpeed
Decreases the reload time of submarine turrets operated by the character by a percentage.
@ WeaponsSkillOverride
Boosts the character's weapons skill to the given value if it's lower than the given value.
@ MechanicalSkillBonus
Boosts mechanical skill by a flat amount.
@ ReputationLossMultiplier
Increases how much reputation the character loses by a percentage. Can be made to only affect certain...
@ StoreBuyMultiplier
Decreases the prices of items in all stores by a percentage.
@ ShipyardBuyMultiplier
Decreases the price of upgrades and submarines in all outposts by a percentage.
@ MedicalItemEffectivenessMultiplier
Increases the strength of afflictions that are applied to the character by a percentage....
@ CPRBoost
Increases the revival chance of the character when performing CPR by a percentage.
@ HelmSkillGainSpeed
Increases the speed at which the character gains helm skill by a percentage.
@ ElectricalSkillOverride
Boosts the character's electrical skill to the given value if it's lower than the given value.
@ MedicalSkillOverride
Boosts the character's medical skill to the given value if it's lower than the given value.
@ WalkingSpeed
Increases the character's walking speed by a percentage.
@ ExplosionRadiusMultiplier
Increase the radius of explosions caused by the character by a percentage.
@ MaxRepairConditionMultiplierElectrical
Allows the character to repair electrical items past the maximum condition by a flat percentage amoun...
@ StoreSellMultiplier
Increases how much money is gained from selling items to the store by a percentage.
@ RepairSpeed
Increases the repair speed of the character by a percentage.
@ Apprenticeship
Used to set the character's apprencticeship to a certain job. Used by the "apprenticeship" talent and...
@ StoreBuyMultiplierAffiliated
Decreases the prices of items in affiliated store by a percentage.
@ RangedAttackSpeed
Decreases the reload time of ranged weapons held by the character by a percentage.
@ NaturalMeleeAttackMultiplier
Multiplier bonus to melee attacks coming from a natural weapon (limb).
@ TeamAttackMultiplier
Increases how much damage the character deals to other characters on the same team by a percentage.
@ ReputationGainMultiplier
Increases how much reputation the character gains by a percentage. Can be made to only affect certain...
@ HireCostMultiplier
Used to reduce or increase the cost of hiring certain jobs by a percentage.
@ MaxRepairConditionMultiplierMechanical
Allows the character to repair mechanical items past the maximum condition by a flat percentage amoun...
@ NaturalRangedAttackMultiplier
Multiplier bonus to ranged attacks coming from a natural weapon (limb).
@ ExperienceGainMultiplier
Increases how much talent experience the character gains from all sources by a percentage.
@ MechanicalRepairSpeed
Increases the repair speed of the character when repairing mechanical items by a percentage.
@ TinkeringDamage
Increases how much condition tinkered items lose when the character tinkers with them by a percentage...
@ ExtraMissionCount
Increases how many missions the characters crew can have at the same time by a flat amount.
@ MechanicalSkillOverride
Boosts the character's mechanical skill to the given value if it's lower than the given value.
@ MeleeAttackSpeed
Increases how fast the character can swing melee weapons by a percentage.
@ PropulsionSpeed
Increases the character's speed by a percentage when using an item that propels the character forward...
@ RepairToolStructureDamageMultiplier
Increases the wall damage of tools that destroy submarine walls like plasma cutter by a percentage.
@ BuffItemApplyingMultiplier
Increases the strength of afflictions the character applies to other characters via medicine by a per...
@ TinkeringDuration
Increases how long the character can tinker with items by a flat amount where 1 = 1 second.
@ IncreaseFabricationQuality
Increase the the quality of items crafted by the character by a flat amount. Can be made to only affe...
@ SoundRangeMultiplier
Modifies the range of the sounds emitted by the character (can be used to make the character easier o...
@ TurretChargeSpeed
Increases how fast submarine turrets operated by the character charge up by a percentage....
@ BuffDurationMultiplier
Decreases how long it takes for buffs applied to the character decay over time by a percentage....
@ MissionExperienceGainMultiplier
Increases how much talent experience the character gains from missions by a percentage.
@ ExplosionDamageMultiplier
Increases the damage of explosions caused by the character by a percentage.
@ ShipyardBuyMultiplierAffiliated
Decreases the price of upgrades and submarines in affiliated outposts by a percentage.
@ HelmSkillOverride
Boosts the character's helm skill to the given value if it's lower than the given value.
@ ExtraSpecialSalesCount
Increases how many items are in stock in special sales in the store by a flat amount.