@@ -0,0 +1,7 @@
|
||||
### Interaction Popup component
|
||||
|
||||
## Petting animals
|
||||
|
||||
cp14-petting-success-rabbit = You pet {THE($target)} on {POSS-ADJ($target)} fluffy little head.
|
||||
|
||||
cp14-petting-failure-rabbit = You reach out to pet {THE($target)}, but {SUBJECT($target)} {CONJUGATE-BASIC($target, "attempt", "attempts")} to bite your finger and only your quick reflexes save you from an almost fatal injury.
|
||||
@@ -0,0 +1,9 @@
|
||||
### Interaction Popup component
|
||||
|
||||
|
||||
## Petting animals
|
||||
|
||||
|
||||
cp14-petting-success-rabbit = Вы гладите { $target } по { POSS-ADJ($target) } маленькой пушистой голове.
|
||||
|
||||
cp14-petting-failure-rabbit = Вы тянетесь погладить { $target }, но { $target } пытается укусить вас за палец, и только ваши молниеносные рефлексы спасают вас от почти смертельной травмы.
|
||||
@@ -12,3 +12,18 @@
|
||||
- type: ConditionalSpawner
|
||||
prototypes:
|
||||
- CP14MobUndeadZombie
|
||||
|
||||
- type: entity
|
||||
name: rabbit spawner
|
||||
id: CP14SpawnMobRabbit
|
||||
parent: MarkerBase
|
||||
components:
|
||||
- type: Sprite
|
||||
layers:
|
||||
- sprite: Markers/cross.rsi
|
||||
state: green
|
||||
- sprite: _CP14/Mobs/Animals/rabbit.rsi
|
||||
state: rabbit
|
||||
- type: ConditionalSpawner
|
||||
prototypes:
|
||||
- CP14MobRabbit
|
||||
|
||||
76
Resources/Prototypes/_CP14/Entities/Mobs/NPC/animals.yml
Normal file
76
Resources/Prototypes/_CP14/Entities/Mobs/NPC/animals.yml
Normal file
@@ -0,0 +1,76 @@
|
||||
- type: entity
|
||||
id: CP14MobRabbit
|
||||
parent: SimpleMobBase
|
||||
name: rabbit
|
||||
description: A little fluffy rabbit. I could eat it.
|
||||
components:
|
||||
- type: HTN
|
||||
rootTask:
|
||||
task: RuminantCompound
|
||||
- type: NpcFactionMember
|
||||
factions:
|
||||
- CP14PeacefulAnimals
|
||||
- type: Sprite
|
||||
drawdepth: Mobs
|
||||
layers:
|
||||
- map: ["enum.DamageStateVisualLayers.Base"]
|
||||
sprite: _CP14/Mobs/Animals/rabbit.rsi
|
||||
state: rabbit
|
||||
- type: Fixtures
|
||||
fixtures:
|
||||
fix1:
|
||||
shape:
|
||||
!type:PhysShapeCircle
|
||||
radius: 0.35
|
||||
density: 8
|
||||
mask:
|
||||
- MobMask
|
||||
layer:
|
||||
- MobLayer
|
||||
- type: Tag
|
||||
tags:
|
||||
- CP14Rabbit
|
||||
- type: Reproductive
|
||||
partnerWhitelist:
|
||||
tags:
|
||||
- CP14Rabbit
|
||||
offspring:
|
||||
- id: CP14MobRabbit
|
||||
maxAmount: 2
|
||||
- type: ReproductivePartner
|
||||
- type: Speech
|
||||
speechVerb: SmallMob
|
||||
- type: Appearance
|
||||
- type: MobThresholds
|
||||
thresholds:
|
||||
0: Alive
|
||||
30: Dead
|
||||
- type: CombatMode
|
||||
- type: MeleeWeapon
|
||||
angle: 0
|
||||
animation: WeaponArcBite
|
||||
damage:
|
||||
types:
|
||||
Piercing: 1
|
||||
- type: MovementSpeedModifier
|
||||
baseWalkSpeed : 4
|
||||
baseSprintSpeed : 5
|
||||
- type: DamageStateVisuals
|
||||
states:
|
||||
Alive:
|
||||
Base: rabbit
|
||||
Dead:
|
||||
Base: rabbit_dead
|
||||
- type: Butcherable
|
||||
spawned:
|
||||
- id: CP14FoodMeatLamb # to replace the rabbit meat
|
||||
amount: 1
|
||||
- type: Bloodstream
|
||||
bloodMaxVolume: 50
|
||||
- type: InteractionPopup
|
||||
successChance: 0.5
|
||||
interactSuccessString: cp14-petting-success-rabbit
|
||||
interactFailureString: cp14-petting-failure-rabbit
|
||||
interactSuccessSpawn: EffectHearts
|
||||
interactSuccessSound:
|
||||
path: /Audio/Animals/fox_squeak.ogg
|
||||
@@ -48,3 +48,6 @@
|
||||
|
||||
- type: Tag
|
||||
id: CP14RecipeMeltingFurnace
|
||||
|
||||
- type: Tag
|
||||
id: CP14Rabbit
|
||||
|
||||
21
Resources/Textures/_CP14/Mobs/Animals/rabbit.rsi/meta.json
Normal file
21
Resources/Textures/_CP14/Mobs/Animals/rabbit.rsi/meta.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"version": 1,
|
||||
"size":
|
||||
{
|
||||
"x": 32,
|
||||
"y": 32
|
||||
},
|
||||
"license": "CC-BY-SA-3.0",
|
||||
"copyright": "Created by Pelemonk (Github) for CrystallPunk 14",
|
||||
"states":
|
||||
[
|
||||
{
|
||||
"name": "rabbit",
|
||||
"directions": 4
|
||||
},
|
||||
{
|
||||
"name": "rabbit_dead",
|
||||
"directions": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
Resources/Textures/_CP14/Mobs/Animals/rabbit.rsi/rabbit.png
Normal file
BIN
Resources/Textures/_CP14/Mobs/Animals/rabbit.rsi/rabbit.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
BIN
Resources/Textures/_CP14/Mobs/Animals/rabbit.rsi/rabbit_dead.png
Normal file
BIN
Resources/Textures/_CP14/Mobs/Animals/rabbit.rsi/rabbit_dead.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 461 B |
Reference in New Issue
Block a user