Skip to content

Commit

Permalink
make cats attack mouse toy (#1877)
Browse files Browse the repository at this point in the history
* make cats attack mouse toy

* make toy mouse bit work

* pro

* pro

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
  • Loading branch information
deltanedas authored Sep 24, 2024
1 parent 6e5660d commit e9f0b86
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Resources/Prototypes/DeltaV/ai_factions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- type: npcFaction
id: Cat
hostile:
- Mouse
- SimpleHostile
6 changes: 6 additions & 0 deletions Resources/Prototypes/Entities/Mobs/NPCs/animals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2867,6 +2867,12 @@
- type: Tag
tags:
- VimPilot
- type: HTN # DeltaV - make all cats eat mice
rootTask:
task: SimpleHostileCompound
- type: NpcFactionMember # DeltaV - give cats faction so they fight mice
factions:
- Cat

- type: entity
name: calico cat
Expand Down
2 changes: 2 additions & 0 deletions Resources/Prototypes/Entities/Mobs/NPCs/pets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@
- type: NpcFactionMember
factions:
- PetsNT
- Cat # DeltaV
- type: HTN
rootTask:
task: SimpleHostileCompound
Expand All @@ -158,6 +159,7 @@
- type: NpcFactionMember
factions:
- PetsNT
- Cat # DeltaV
- type: Grammar
attributes:
proper: true
Expand Down
11 changes: 11 additions & 0 deletions Resources/Prototypes/Entities/Objects/Fun/toys.yml
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,17 @@
equippedPrefix: mouse
slots:
- HEAD
# Begin DeltaV additions: make cats attack mouse toys to play with them
- type: Damageable
damageContainer: StructuralInorganic # not actually destructible, just lets it be attacked
- type: MobState
- type: MobThresholds
thresholds:
0: Alive # always be considered alive
- type: NpcFactionMember
factions:
- Mouse
# End DeltaV additions

- type: entity
parent: BasePlushie
Expand Down

0 comments on commit e9f0b86

Please sign in to comment.