Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make cats attack mouse toy #1877

Merged
merged 5 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading