Add some animals basic mechanics (#5132)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
157
Resources/Prototypes/Body/Parts/animal.yml
Normal file
157
Resources/Prototypes/Body/Parts/animal.yml
Normal file
@@ -0,0 +1,157 @@
|
||||
# Just copypasta of some human basic body parts for interaction,
|
||||
# only differences for now is that limbs work in pairs,
|
||||
# they are unextractable and can't be spawned (no surgery on Animals!?).
|
||||
|
||||
- type: entity
|
||||
id: PartAnimal
|
||||
parent: BaseItem
|
||||
name: "animal body part"
|
||||
abstract: true
|
||||
components:
|
||||
- type: Damageable
|
||||
damageContainer: Biological
|
||||
- type: BiologicalSurgeryData
|
||||
|
||||
# For primates mainly
|
||||
- type: entity
|
||||
id: HandsAnimal
|
||||
name: "animal hands"
|
||||
parent: PartAnimal
|
||||
abstract: true
|
||||
components:
|
||||
- type: BodyPart
|
||||
partType: Hand
|
||||
size: 1
|
||||
compatibility: Biological
|
||||
symmetry: Left
|
||||
- type: Grasp
|
||||
|
||||
- type: entity
|
||||
id: LegsAnimal
|
||||
name: "animal legs"
|
||||
parent: PartAnimal
|
||||
abstract: true
|
||||
components:
|
||||
- type: BodyPart
|
||||
partType: Leg
|
||||
size: 1
|
||||
compatibility: Biological
|
||||
|
||||
- type: entity
|
||||
id: FeetAnimal
|
||||
name: "animal feet"
|
||||
parent: PartAnimal
|
||||
abstract: true
|
||||
components:
|
||||
- type: BodyPart
|
||||
partType: Foot
|
||||
size: 1
|
||||
compatibility: Biological
|
||||
|
||||
- type: entity
|
||||
id: TorsoAnimal
|
||||
name: "animal torso"
|
||||
parent: PartAnimal
|
||||
abstract: true
|
||||
components:
|
||||
- type: BodyPart
|
||||
partType: Torso
|
||||
size: 7
|
||||
compatibility: Biological
|
||||
mechanisms:
|
||||
- OrganAnimalLungs
|
||||
- OrganAnimalStomach
|
||||
- OrganAnimalLiver
|
||||
- OrganAnimalHeart
|
||||
- OrganAnimalKidneys
|
||||
- type: Damageable
|
||||
damageContainer: Biological
|
||||
|
||||
- type: entity
|
||||
id: BaseAnimalOrgan
|
||||
parent: BaseItem
|
||||
abstract: true
|
||||
components:
|
||||
- type: Mechanism
|
||||
|
||||
- type: entity
|
||||
id: OrganAnimalLungs
|
||||
parent: BaseAnimalOrgan
|
||||
name: lungs
|
||||
abstract: true
|
||||
components:
|
||||
- type: Mechanism
|
||||
size: 1
|
||||
compatibility: Biological
|
||||
behaviors:
|
||||
- !type:LungBehavior {}
|
||||
|
||||
- type: entity
|
||||
id: OrganAnimalStomach
|
||||
parent: BaseAnimalOrgan
|
||||
name: stomach
|
||||
abstract: true
|
||||
components:
|
||||
- type: Mechanism
|
||||
size: 1
|
||||
compatibility: Biological
|
||||
- type: SolutionContainerManager
|
||||
solutions:
|
||||
stomach:
|
||||
maxVol: 100
|
||||
- type: Stomach
|
||||
maxVolume: 100
|
||||
digestionDelay: 20
|
||||
- type: Metabolizer
|
||||
maxReagents: 3
|
||||
metabolizerTypes: [Human, Animal]
|
||||
groups:
|
||||
- id: Food
|
||||
- id: Drink
|
||||
|
||||
- type: entity
|
||||
id: OrganAnimalLiver
|
||||
parent: BaseAnimalOrgan
|
||||
name: liver
|
||||
abstract: true
|
||||
components:
|
||||
- type: Mechanism
|
||||
size: 1
|
||||
compatibility: Biological
|
||||
- type: Metabolizer
|
||||
maxReagents: 1
|
||||
metabolizerTypes: [Human, Animal]
|
||||
groups:
|
||||
- id: Alcohol
|
||||
rateModifier: 0.1
|
||||
|
||||
- type: entity
|
||||
id: OrganAnimalHeart
|
||||
parent: BaseAnimalOrgan
|
||||
name: heart
|
||||
abstract: true
|
||||
components:
|
||||
- type: Mechanism
|
||||
size: 1
|
||||
compatibility: Biological
|
||||
- type: Metabolizer
|
||||
maxReagents: 2
|
||||
metabolizerTypes: [Human, Animal]
|
||||
groups:
|
||||
- id: Medicine
|
||||
- id: Poison
|
||||
- id: Narcotic
|
||||
|
||||
- type: entity
|
||||
id: OrganAnimalKidneys
|
||||
parent: BaseAnimalOrgan
|
||||
name: kidneys
|
||||
abstract: true
|
||||
components:
|
||||
- type: Mechanism
|
||||
size: 1
|
||||
compatibility: Biological
|
||||
- type: Metabolizer
|
||||
maxReagents: 5
|
||||
metabolizerTypes: [Human, Animal]
|
||||
removeEmpty: true
|
||||
7
Resources/Prototypes/Body/Presets/animal.yml
Normal file
7
Resources/Prototypes/Body/Presets/animal.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
- type: bodyPreset
|
||||
name: "animal preset"
|
||||
id: AnimalPreset
|
||||
partIDs:
|
||||
legs: LegsAnimal
|
||||
feet: FeetAnimal
|
||||
torso: TorsoAnimal
|
||||
8
Resources/Prototypes/Body/Presets/primate.yml
Normal file
8
Resources/Prototypes/Body/Presets/primate.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
- type: bodyPreset
|
||||
name: "primate preset"
|
||||
id: PrimatePreset
|
||||
partIDs:
|
||||
hands: HandsAnimal
|
||||
legs: LegsAnimal
|
||||
feet: FeetAnimal
|
||||
torso: TorsoAnimal
|
||||
14
Resources/Prototypes/Body/Templates/animal.yml
Normal file
14
Resources/Prototypes/Body/Templates/animal.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
# I know I've skipped few parts
|
||||
- type: bodyTemplate
|
||||
id: AnimalTemplate
|
||||
name: "animal template"
|
||||
centerSlot: "torso"
|
||||
slots:
|
||||
torso: Torso
|
||||
legs: Leg
|
||||
feet: Foot
|
||||
connections:
|
||||
torso:
|
||||
- legs
|
||||
legs:
|
||||
- feet
|
||||
16
Resources/Prototypes/Body/Templates/primate.yml
Normal file
16
Resources/Prototypes/Body/Templates/primate.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
# I know I've skipped few parts
|
||||
- type: bodyTemplate
|
||||
id: PrimateTemplate
|
||||
name: "primate template"
|
||||
centerSlot: "torso"
|
||||
slots:
|
||||
torso: Torso
|
||||
hands: Hand
|
||||
legs: Leg
|
||||
feet: Foot
|
||||
connections:
|
||||
torso:
|
||||
- hands
|
||||
- legs
|
||||
legs:
|
||||
- feet
|
||||
Reference in New Issue
Block a user