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 
18  public enum ActionType
19  {
23  Always = 0,
27  OnPicked = 1,
31  OnUse = 2,
35  OnSecondaryUse = 3,
39  OnWearing = 4,
43  OnContaining = 5,
47  OnContained = 6,
51  OnNotContained = 7,
55  OnActive = 8,
59  OnFailure = 9,
63  OnBroken = 10,
67  OnFire = 11,
71  InWater = 12,
75  NotInWater = 13,
80  OnImpact = 14,
84  OnEating = 15,
89  OnDamaged = 16,
93  OnSevered = 17,
97  OnProduceSpawned = 18,
101  OnOpen = 19,
105  OnClose = 20,
109  OnSpawn = 21,
113  OnSuccess = 22,
117  OnAbility = 23,
121  OnDeath = OnBroken
122  }
123 
124  public enum AbilityEffectType
125  {
126  Undefined,
127  None,
128  OnAttack,
130  OnAttacked,
143  OnRagdoll,
144  OnRoundEnd,
148  OnGiveOrder,
162  OnItemPicked,
170  }
171 
179  public enum StatTypes
180  {
184  None,
185 
190 
195 
200 
205 
210 
215 
220 
225 
230 
235 
240 
245 
249  WalkingSpeed,
250 
255 
260 
266 
272 
278 
283 
288 
293 
298 
303 
308 
313 
318 
323 
328 
332  RepairSpeed,
333 
338 
343 
348 
353 
358 
363 
368 
373 
379 
384 
389 
394 
399 
404 
409 
414 
419 
424 
430 
436 
442 
447 
453 
458 
464 
470 
475 
480 
485 
490 
495 
500 
505 
510 
515 
520 
526 
531 
536 
541 
546 
551 
557 
561  CPRBoost,
562 
567 
572 
577 
582 
587 
592  }
593 
594  internal enum ItemTalentStats
595  {
596  None,
597  DetoriationSpeed,
598  BatteryCapacity,
599  EngineSpeed,
600  EngineMaxSpeed,
601  PumpSpeed,
602  PumpMaxFlow,
603  ReactorMaxOutput,
604  ReactorFuelConsumption,
605  DeconstructorSpeed,
606  FabricationSpeed,
607  ExtraStackSize
608  }
609 
613  [Flags]
614  public enum AbilityFlags
615  {
619  None = 0,
620 
624  MustWalk = 0x1,
625 
629  ImmuneToPressure = 0x2,
630 
634  IgnoredByEnemyAI = 0x4,
635 
640 
644  CanTinker = 0x10,
645 
650 
654  TinkeringPowersDevices = 0x40,
655 
659  GainSkillPastMaximum = 0x80,
660 
665 
669  AllowSecondOrderedTarget = 0x200,
670 
674  AlwaysStayConscious = 0x400,
675 
680  CanNotDieToAfflictions = 0x800
681  }
682 
683  [Flags]
684  public enum CharacterType
685  {
686  Bot = 0b01,
687  Player = 0b10,
688  Both = Bot | Player
689  }
690 
692  {
693  Low,
694  Medium,
695  High,
696  }
697 
699  {
700  Off,
701  Low,
702  Medium,
703  High,
704  }
705 
707  {
708  Low,
709  Medium,
710  High,
711  Hellish
712  }
713 
714  public enum NumberType
715  {
716  Int,
717  Float
718  }
719 
720  public enum ChatMode
721  {
722  None,
723  Local,
724  Radio
725  }
726 }
NumberType
Definition: Enums.cs:715
StartingBalanceAmountOption
Definition: Enums.cs:692
AbilityFlags
AbilityFlags are a set of toggleable flags that can be applied to characters.
Definition: Enums.cs:615
@ 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:19
@ OnSevered
Executes when the limb gets severed. Only valid for limbs.
@ InWater
Executes continuously when the entity is submerged. Valid for items and characters.
@ 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.
@ 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:707
TransitionMode
Definition: Enums.cs:6
AbilityEffectType
Definition: Enums.cs:125
PatdownProbabilityOption
Definition: Enums.cs:699
CharacterType
Definition: Enums.cs:685
StatTypes
StatTypes are used to alter several traits of a character. They are mostly used by talents.
Definition: Enums.cs:180
@ 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.
@ 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...
@ 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.