Dwarf minor content (#15082)

* alcohol & body stuff

* vocal changes

* accent

* dumb
This commit is contained in:
Kara
2023-04-02 20:28:49 -07:00
committed by GitHub
parent f1e6bb39ff
commit 22db95faaa
8 changed files with 233 additions and 2 deletions

View File

@@ -0,0 +1,33 @@
- type: entity
id: OrganDwarfHeart
parent: OrganHumanHeart
name: dwarf heart
components:
- type: Metabolizer
metabolizerTypes: [Dwarf]
- type: entity
id: OrganDwarfLiver
parent: OrganHumanLiver
name: dwarf liver
components:
- type: Metabolizer
metabolizerTypes: [Dwarf]
- type: entity
id: OrganDwarfStomach
parent: OrganHumanStomach
name: dwarf stomach
components:
- type: Sprite
state: stomach
- type: Organ
- type: SolutionContainerManager
solutions:
stomach:
maxVol: 75
- type: Stomach
- type: Metabolizer
# mm very yummy
maxReagents: 5
metabolizerTypes: [Dwarf]

View File

@@ -0,0 +1,49 @@
- type: body
id: Dwarf
name: "dwarf"
root: torso
slots:
head:
part: HeadHuman
connections:
- torso
organs:
brain: OrganHumanBrain
eyes: OrganHumanEyes
torso:
part: TorsoHuman
connections:
- left arm
- right arm
- left leg
- right leg
organs:
heart: OrganDwarfHeart
lungs: OrganHumanLungs
stomach: OrganDwarfStomach
liver: OrganDwarfLiver
kidneys: OrganHumanKidneys
right arm:
part: RightArmHuman
connections:
- right hand
left arm:
part: LeftArmHuman
connections:
- left hand
right hand:
part: RightHandHuman
left hand:
part: LeftHandHuman
right leg:
part: RightLegHuman
connections:
- right foot
left leg:
part: LeftLegHuman
connections:
- left foot
right foot:
part: RightFootHuman
left foot:
part: LeftFootHuman

View File

@@ -20,4 +20,7 @@
id: Rat
- type: metabolizerType
id: Plant
id: Plant
- type: metabolizerType
id: Dwarf

View File

@@ -23,8 +23,28 @@
drawdepth: Mobs
scale: 1, 0.8
- type: Body
prototype: Human
prototype: Dwarf
requiredLegs: 2
- type: Fixtures
fixtures: # TODO: This needs a second fixture just for mob collisions.
- shape:
!type:PhysShapeCircle
radius: 0.35
# they r smaller
density: 120
restitution: 0.0
mask:
- MobMask
layer:
- MobLayer
- type: Vocal
sounds:
Male: UnisexDwarf
Female: UnisexDwarf
Unsexed: UnisexDwarf
- type: DwarfAccent
- type: Speech
speechSounds: Bass
- type: entity
save: false

View File

@@ -125,12 +125,35 @@
damage:
types:
Caustic: 1
# dwarves take less toxin damage and heal a marginal amount of brute
- !type:HealthChange
conditions:
- !type:ReagentThreshold
min: 5
- !type:OrganType
type: Dwarf
damage:
types:
Caustic: 0.5
- !type:HealthChange
conditions:
- !type:ReagentThreshold
min: 5
- !type:OrganType
type: Dwarf
damage:
groups:
Brute: -1
- !type:ChemVomit
probability: 0.04
conditions:
- !type:ReagentThreshold
reagent: Ethanol
min: 3
# dwarves immune to vomiting from alcohol
- !type:OrganType
type: Dwarf
shouldHave: false
Alcohol:
effects:
- !type:Drunk

View File

@@ -46,6 +46,17 @@
params:
variation: 0.125
- type: emoteSounds
id: UnisexDwarf
sounds:
Scream:
collection: MaleScreams
Laugh:
collection: MaleLaugh
params:
variation: 0.125
pitchscale: 0.75
# body emotes
- type: emoteSounds
id: GeneralBodyEmotes