Add mob retaliation (#19901)

This commit is contained in:
Nemanja
2023-10-06 20:56:18 -04:00
committed by GitHub
parent 45234b25b6
commit 02df8cd263
10 changed files with 339 additions and 47 deletions

View File

@@ -111,6 +111,14 @@
bloodMaxVolume: 0.1
- type: MobPrice
price: 50
- type: NPCRetaliation
- type: FactionException
- type: NpcFactionMember
factions:
- Passive
- type: HTN
rootTask:
task: SimpleHostileCompound
- type: Puller
needsHands: true
@@ -560,6 +568,8 @@
states:
Alive:
Base: goat
Critical:
Base: dead
Dead:
Base: dead
- type: SolutionContainerManager
@@ -592,9 +602,12 @@
- Passive
- type: Body
prototype: AnimalRuminant
- type: NPCRetaliation
attackMemoryLength: 5
- type: FactionException
- type: HTN
rootTask:
task: RuminantCompound
task: RuminantHostileCompound
# Note that we gotta make this bitch vomit someday when you feed it anthrax or sumthin. Needs to be a small item thief too and aggressive if attacked.
- type: entity
@@ -671,6 +684,8 @@
states:
Alive:
Base: crawling
Critical:
Base: dead
Dead:
Base: dead
- type: Butcherable
@@ -679,6 +694,20 @@
amount: 4
- type: Bloodstream
bloodMaxVolume: 300
# if you fuck with the gorilla he will harambe you
- type: MeleeWeapon
damage:
types:
Blunt: 20
animation: WeaponArcFist
- type: NPCRetaliation
- type: FactionException
- type: NpcFactionMember
factions:
- Passive
- type: HTN
rootTask:
task: SimpleHostileCompound
- type: Puller
- type: entity
@@ -760,6 +789,15 @@
soundHit:
collection: BoxingHit
animation: WeaponArcFist
- type: NPCRetaliation
attackMemoryLength: 10
- type: FactionException
- type: NpcFactionMember
factions:
- Passive
- type: HTN
rootTask:
task: SimpleHostileCompound
- type: entity
name: boxing kangaroo
@@ -768,9 +806,6 @@
components:
- type: Loadout
prototypes: [ BoxingKangarooGear ]
- type: HTN
rootTask:
task: SimpleHostileCompound
- type: NpcFactionMember
factions:
- SimpleHostile
@@ -857,9 +892,15 @@
- type: MonkeyAccent
- type: Puller
- type: CanHostGuardian
- type: NPCRetaliation
attackMemoryLength: 10
- type: FactionException
- type: NpcFactionMember
factions:
- Passive
- Passive
- type: HTN
rootTask:
task: SimpleHostileCompound
- type: GhostRole
prob: 0.05
makeSentient: true

View File

@@ -39,6 +39,19 @@
- !type:HTNCompoundTask
task: IdleCompound
- type: htnCompound
id: RuminantHostileCompound
branches:
- tasks:
- !type:HTNCompoundTask
task: MeleeCombatCompound
- tasks:
- !type:HTNCompoundTask
task: FoodCompound
- tasks:
- !type:HTNCompoundTask
task: IdleCompound
- type: htnCompound
id: DragonCarpCompound
branches: