Skip to content

Commit

Permalink
Pets (#278)
Browse files Browse the repository at this point in the history
* Pets

* Pets

* No need with the use of the crate

* Pets

* Pets

* Pets

* Pets

* Update emotionalsupportanimals.yml

* Delete NPCCombatTargetComponent.cs

* Update emotionalsupportpet_inventory_template.yml
  • Loading branch information
dvir001 authored Aug 30, 2023
1 parent dd0193d commit bb47465
Show file tree
Hide file tree
Showing 16 changed files with 428 additions and 90 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## Petting animals

#petting-failure-pibble = You reach out to pet {THE($target)}, and {SUBJECT($target)} lunges at you!
petting-failure-pibble = You reach out to pet {THE($target)}, but think better of it.
62 changes: 46 additions & 16 deletions Resources/Prototypes/Entities/Mobs/NPCs/animals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@
- type: NpcFactionMember
factions:
- Passive
- Chicken

- type: entity
id: FoodEggChickenFertilized
Expand Down Expand Up @@ -868,6 +869,7 @@
- type: NpcFactionMember
factions:
- Passive
- Monkey
- type: GhostRole
prob: 0.05
makeSentient: true
Expand Down Expand Up @@ -2002,6 +2004,9 @@
id: MobCat
description: Feline pet, very funny.
components:
- type: NpcFactionMember
factions:
- Cat
- type: Sprite
drawdepth: Mobs
sprite: Mobs/Pets/cat.rsi
Expand Down Expand Up @@ -2076,10 +2081,15 @@
- type: entity
name: space cat
id: MobCatSpace
parent: MobCat
parent: SimpleSpaceSuitMobBase
description: Feline pet, prepared for the worst.
components:
- type: NpcFactionMember
factions:
- Cat
- type: Sprite
drawdepth: Mobs
sprite: Mobs/Pets/cat.rsi
layers:
- map: ["enum.DamageStateVisualLayers.Base"]
state: spacecat
Expand All @@ -2096,21 +2106,41 @@
interactFailureString: petting-failure-generic
interactSuccessSound:
path: /Audio/Animals/cat_meow.ogg
- type: Barotrauma
damage:
types:
Blunt: 0.0 #per second, scales with pressure and other constants.
- type: Temperature
heatDamageThreshold: 360
coldDamageThreshold: 0
currentTemperature: 310.15
coldDamage:
types:
Cold : 0.1 #per second, scales with temperature & other constants
specificHeat: 42
heatDamage:
types:
Heat : 0.1 #per second, scales with temperature & other constants
- type: Physics
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeCircle
radius: 0.35
density: 15
mask:
- MobMask
layer:
- MobLayer
- type: Inventory
speciesId: cat
templateId: pet
- type: InventorySlots
- type: Strippable
- type: UserInterface
interfaces:
- key: enum.StrippingUiKey.Key
type: StrippableBoundUserInterface
- type: Butcherable
spawned:
- id: FoodMeat
amount: 3
- type: ReplacementAccent
accent: cat
- type: Grammar
attributes:
gender: epicene
- type: MobPrice
price: 200
- type: Tag
tags:
- VimPilot

- type: entity
name: caracal cat
Expand Down
8 changes: 8 additions & 0 deletions Resources/Prototypes/Entities/Mobs/NPCs/pets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
- type: NpcFactionMember
factions:
- PetsNT
- Cat
- type: HTN
rootTask:
task: SimpleHostileCompound
Expand All @@ -110,6 +111,7 @@
- type: NpcFactionMember
factions:
- PetsNT
- Cat
- type: Grammar
attributes:
gender: male
Expand All @@ -124,6 +126,9 @@
parent: MobCatCaracal
description: He out here.
components:
- type: NpcFactionMember
factions:
- Cat
- type: Fixtures
fixtures:
fix1:
Expand Down Expand Up @@ -163,6 +168,9 @@
id: MobBingus
description: Bingus my beloved...
components:
- type: NpcFactionMember
factions:
- Cat
- type: Sprite
drawdepth: Mobs
sprite: Mobs/Pets/bingus.rsi
Expand Down
4 changes: 4 additions & 0 deletions Resources/Prototypes/Entities/Mobs/Species/dwarf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@
- type: Speech
speechSounds: Bass
- type: Perishable
- type: NpcFactionMember
factions:
- NanoTrasen
- Dwarf

- type: entity
save: false
Expand Down
49 changes: 43 additions & 6 deletions Resources/Prototypes/_NF/Catalog/Fills/Crates/npc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
- type: entity
name: Emotional support pet crate
id: CrateNPCEmotionalSupport
parent: CrateLivestock
components:
Expand All @@ -11,20 +12,56 @@
prob: 1
orGroup: MobCatGhost
- id: MobCatCaracalGhost
prob: 0.15
prob: 1
orGroup: MobCatGhost
- id: MobBingusGhost
prob: 1
orGroup: MobCatGhost
- id: MobCatSpaceGhost
prob: 1
orGroup: MobCatGhost
- id: MobCorgiGhost
prob: 1
orGroup: MobCatGhost
- id: MobCorgiPuppyGhost
prob: 1
orGroup: MobCatGhost
- id: MobChickenGhost
prob: 1
orGroup: MobCatGhost
- id: MobPibbleGhost
prob: 0.25
orGroup: MobCatGhost

- type: entity
name: Emotional support pet crate
id: CrateNPCEmotionalSupportSafe # No pitbull
parent: CrateLivestock
suffix: Safe
components:
- type: StorageFill
contents:
- id: MobCatGhost
prob: 1
orGroup: MobCatGhost
- id: MobCatCalicoGhost
prob: 1
orGroup: MobCatGhost
- id: MobCatCaracalGhost
prob: 1
orGroup: MobCatGhost
- id: MobBingusGhost
prob: 0.15
prob: 1
orGroup: MobCatGhost
- id: MobCatSpaceGhost
prob: 0.15
prob: 1
orGroup: MobCatGhost
- id: MobCorgiGhost
prob: 1
orGroup: MobCatGhost
- id: MobCorgiPuppyGhost
prob: 0.15
prob: 1
orGroup: MobCatGhost
- id: MobChickenGhost
prob: 0.15
orGroup: MobCatGhost
prob: 1
orGroup: MobCatGhost
Loading

0 comments on commit bb47465

Please sign in to comment.