Royal pumpkin (#547)

* royal pumpkin

* Secret zombie fix

---------

Co-authored-by: Ed <96445749+TheShuEd@users.noreply.github.com>
This commit is contained in:
Nim
2024-11-08 09:26:08 +02:00
committed by GitHub
parent e062d386fc
commit c7b230857f
7 changed files with 126 additions and 2 deletions

View File

@@ -0,0 +1,74 @@
- type: entity
id: CP14RoyalPumpkin
parent: CP14BaseFlammableSpreading
name: royal pumpkin
description: It's a huge pumpkin, it feels like you could even make a carriage out of it.
categories: [ ForkFiltered ]
components:
- type: Clickable
- type: Sprite
noRot: true
sprite: _CP14/Structures/Flora/royal_pumpkin.rsi
drawdepth: Mobs
state: royal_pumpkin
- type: FlavorProfile
flavors:
- pumpkin
- type: Food
- type: Damageable
damageContainer: Biological
damageModifierSet: Inflatable
- type: Physics
bodyType: Static
- type: SolutionContainerManager
solutions:
food:
maxVol: 650
reagents:
- ReagentId: PumpkinFlesh
Quantity: 500
- ReagentId: Vitamin
Quantity: 125
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeCircle
radius: 0.5
density: 1000
layer:
- WallLayer
- type: Destructible
thresholds:
- trigger:
!type:DamageTypeTrigger
damageType: Heat
damage: 200
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 40
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 20
behaviors:
- !type:SpillBehavior
solution: food
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/tree_fell.ogg # Поменять звук
params:
volume: 5
variation: 0.05
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:SpawnEntitiesBehavior
spawn:
CP14FoodPumpkinSlice:
min: 20
max: 25

View File

@@ -283,7 +283,7 @@
- type: cp14DemiplaneModifier
id: EnemyZombie
difficulty: 0.4
generationWeight: 20
generationWeight: 1.5
layers:
- !type:OreDunGen
entity: CP14SpawnMobUndeadZombieRandom
@@ -388,4 +388,22 @@
- CP14FloorBase
count: 5
minGroupSize: 2
maxGroupSize: 5
maxGroupSize: 5
- type: cp14DemiplaneModifier
id: RoyalPumpkin
reward: 0.2
generationWeight: 0.1
requiredTags:
- CP14DemiplaneGrass
- CP14DemiplaneOpenSky
layers:
- !type:OreDunGen
tileMask:
- CP14FloorGrass
- CP14FloorGrassLight
- CP14FloorGrassTall
entity: CP14RoyalPumpkin
count: 1
minGroupSize: 1
maxGroupSize: 1

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@@ -0,0 +1,18 @@
{
"version": 1,
"size": {
"x": 64,
"y": 64
},
"license": "CLA",
"copyright": "Created by KREKS for CrystallPunk14",
"states": [
{
"name": "pumpkin_king",
"directions": 4
},
{
"name": "brother_pumpkin_king"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@@ -0,0 +1,14 @@
{
"version": 1,
"license": "CLA",
"copyright": "Created by KREKS for CrystallPunk14",
"size": {
"x": 64,
"y": 64
},
"states": [
{
"name": "royal_pumpkin"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB