New animal, Pig (#12725)

This commit is contained in:
lapatison
2022-12-21 17:48:35 +03:00
committed by GitHub
parent c40f1f8cac
commit c31fd730de
34 changed files with 202 additions and 12 deletions

View File

@@ -232,3 +232,16 @@
- type: ConditionalSpawner
prototypes:
- CrateNPCHamlet
- type: entity
name: Alexander Spawner
id: SpawnMobAlexander
parent: MarkerBase
components:
- type: Sprite
layers:
- state: green
- state: ai
- type: ConditionalSpawner
prototypes:
- MobAlexander

View File

@@ -2005,3 +2005,60 @@
- type: CanEscapeInventory
- type: MobPrice
price: 60
- type: entity
name: pig
parent: SimpleMobBase
id: MobPig
description: Oink.
components:
- type: Sprite
drawdepth: Mobs
layers:
- map: ["enum.DamageStateVisualLayers.Base"]
state: pig
sprite: Mobs/Animals/pig.rsi
- type: Fixtures
fixtures:
- shape:
!type:PhysShapeCircle
radius: 0.35
density: 250
mask:
- MobMask
layer:
- MobLayer
- type: Appearance
- type: Inventory
speciesId: pig
templateId: pet
- type: Strippable
- type: UserInterface
interfaces:
- key: enum.StrippingUiKey.Key
type: StrippableBoundUserInterface
- type: DamageStateVisuals
states:
Alive:
Base: pig
Critical:
Base: dead
Dead:
Base: dead
- type: Butcherable
spawned:
- id: FoodMeat
amount: 6
- type: Grammar
attributes:
gender: epicene
- type: InteractionPopup
successChance: 0.7
interactSuccessString: petting-success-pig
interactFailureString: petting-failure-generic
interactSuccessSound:
path: /Audio/Animals/pig_oink.ogg
- type: ReplacementAccent
accent: pig
- type: SentienceTarget
flavorKind: station-event-random-sentience-flavor-organic

View File

@@ -361,6 +361,16 @@
proper: true
gender: female
- type: entity
name: Alexander
parent: MobPig
id: MobAlexander
description: Chef's finest colleague.
components:
- type: Grammar
attributes:
gender: male
- type: entity
name: Renault
parent: MobFox