Rat King Tweaks (#8940)
Co-authored-by: Kara <lunarautomaton6@gmail.com>
This commit is contained in:
8
Resources/Prototypes/Body/Mechanisms/rat.yml
Normal file
8
Resources/Prototypes/Body/Mechanisms/rat.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
- type: entity
|
||||
id: OrganRatLungs
|
||||
parent: OrganHumanLungs
|
||||
suffix: "rat"
|
||||
components:
|
||||
- type: Metabolizer
|
||||
metabolizerTypes: [ Rat ]
|
||||
|
||||
39
Resources/Prototypes/Body/Parts/rat.yml
Normal file
39
Resources/Prototypes/Body/Parts/rat.yml
Normal file
@@ -0,0 +1,39 @@
|
||||
# Just copypasta of some animal basic body parts for interaction,
|
||||
# It's basically as animals except a different torso with different organs
|
||||
- type: entity
|
||||
id: TorsoRat
|
||||
name: "animal torso"
|
||||
parent: PartAnimal
|
||||
noSpawn: true
|
||||
components:
|
||||
- type: BodyPart
|
||||
partType: Torso
|
||||
size: 7
|
||||
compatibility: Biological
|
||||
mechanisms:
|
||||
- OrganRatLungs
|
||||
- OrganHumanStomach
|
||||
- OrganHumanLiver
|
||||
- OrganHumanHeart
|
||||
- OrganHumanKidneys
|
||||
- type: Damageable
|
||||
damageContainer: Biological
|
||||
|
||||
- type: entity
|
||||
id: OrganRatLungs
|
||||
parent: BaseAnimalOrgan
|
||||
name: lungs
|
||||
noSpawn: true
|
||||
components:
|
||||
- type: Mechanism
|
||||
size: 1
|
||||
compatibility: Biological
|
||||
- type: Lung
|
||||
- type: Metabolizer
|
||||
removeEmpty: true
|
||||
solutionOnBody: false
|
||||
solution: "Lung"
|
||||
metabolizerTypes: [ Rat ]
|
||||
groups:
|
||||
- id: Gas
|
||||
rateModifier: 100.0
|
||||
7
Resources/Prototypes/Body/Presets/rat.yml
Normal file
7
Resources/Prototypes/Body/Presets/rat.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
- type: bodyPreset
|
||||
name: "animal preset"
|
||||
id: RatPreset
|
||||
partIDs:
|
||||
legs: LegsAnimal
|
||||
feet: FeetAnimal
|
||||
torso: TorsoRat
|
||||
@@ -15,3 +15,6 @@
|
||||
|
||||
- type: metabolizerType
|
||||
id: Vox
|
||||
|
||||
- type: metabolizerType
|
||||
id: Rat
|
||||
|
||||
@@ -50,6 +50,9 @@
|
||||
types:
|
||||
Slash: 12
|
||||
Piercing: 8
|
||||
- type: Body
|
||||
template: AnimalTemplate
|
||||
preset: RatPreset
|
||||
- type: Appearance
|
||||
- type: DamageStateVisuals
|
||||
rotate: true
|
||||
@@ -100,6 +103,13 @@
|
||||
amount: 1
|
||||
- type: DiseaseCarrier
|
||||
carrierDiseases:
|
||||
- VentCough
|
||||
- AMIV
|
||||
- SpaceCold
|
||||
- SpaceFlu
|
||||
- Bird Flew
|
||||
- VanAusdallsRobovirus
|
||||
- BleedersBite
|
||||
- Plague
|
||||
- type: SlowOnDamage
|
||||
speedModifierThresholds:
|
||||
@@ -117,8 +127,8 @@
|
||||
components:
|
||||
- type: CombatMode
|
||||
- type: MovementSpeedModifier
|
||||
baseWalkSpeed : 4
|
||||
baseSprintSpeed : 4
|
||||
baseWalkSpeed : 3.5
|
||||
baseSprintSpeed : 3.5
|
||||
- type: UtilityAI
|
||||
behaviorSets:
|
||||
- Idle
|
||||
@@ -151,8 +161,8 @@
|
||||
- type: MobState
|
||||
thresholds:
|
||||
0: !type:NormalMobState {}
|
||||
25: !type:CriticalMobState {}
|
||||
50: !type:DeadMobState {}
|
||||
30: !type:CriticalMobState {}
|
||||
60: !type:DeadMobState {}
|
||||
- type: MeleeWeapon
|
||||
range: 1
|
||||
arcwidth: 0
|
||||
@@ -160,7 +170,10 @@
|
||||
damage:
|
||||
types:
|
||||
Slash: 5
|
||||
Piercing: 2
|
||||
Piercing: 3
|
||||
- type: Body
|
||||
template: AnimalTemplate
|
||||
preset: RatPreset
|
||||
- type: Appearance
|
||||
- type: DamageStateVisuals
|
||||
rotate: true
|
||||
@@ -174,6 +187,13 @@
|
||||
- type: Puller
|
||||
- type: DiseaseCarrier
|
||||
carrierDiseases:
|
||||
- VentCough
|
||||
- AMIV
|
||||
- SpaceCold
|
||||
- SpaceFlu
|
||||
- Bird Flew
|
||||
- VanAusdallsRobovirus
|
||||
- BleedersBite
|
||||
- Plague
|
||||
- type: Vocal
|
||||
# mice are gender neutral who cares
|
||||
|
||||
@@ -17,6 +17,10 @@
|
||||
conditions:
|
||||
- !type:OrganType
|
||||
type: Animal
|
||||
- !type:Oxygenate
|
||||
conditions:
|
||||
- !type:OrganType
|
||||
type: Rat
|
||||
# Convert Oxygen into CO2.
|
||||
- !type:ModifyLungGas
|
||||
conditions:
|
||||
@@ -157,6 +161,9 @@
|
||||
effects:
|
||||
- !type:ChemCauseRandomDisease
|
||||
conditions:
|
||||
- !type:OrganType
|
||||
type: Rat
|
||||
shouldHave: false
|
||||
- !type:ReagentThreshold
|
||||
reagent: Miasma
|
||||
min: 1
|
||||
@@ -168,8 +175,12 @@
|
||||
- Bird Flew
|
||||
- VanAusdallsRobovirus
|
||||
- BleedersBite
|
||||
- Plague
|
||||
- !type:HealthChange
|
||||
conditions:
|
||||
- !type:OrganType
|
||||
type: Rat
|
||||
shouldHave: false
|
||||
- !type:ReagentThreshold
|
||||
reagent: Miasma
|
||||
min: 1
|
||||
@@ -181,6 +192,23 @@
|
||||
- !type:ChemVomit
|
||||
probability: 0.12
|
||||
conditions:
|
||||
- !type:OrganType
|
||||
type: Rat
|
||||
shouldHave: false
|
||||
- !type:ReagentThreshold
|
||||
reagent: Miasma
|
||||
min: 0.8
|
||||
- !type:HealthChange
|
||||
conditions:
|
||||
- !type:OrganType
|
||||
type: Rat
|
||||
- !type:ReagentThreshold
|
||||
reagent: Miasma
|
||||
min: 1
|
||||
scaleByQuantity: true
|
||||
ignoreResistances: true
|
||||
damage:
|
||||
types:
|
||||
Blunt: -4
|
||||
Slash: -3
|
||||
Piercing: -3
|
||||
|
||||
Reference in New Issue
Block a user