diff --git a/Resources/Prototypes/_CP14/Entities/Structures/Flora/royalpumpkin.yml b/Resources/Prototypes/_CP14/Entities/Structures/Flora/royalpumpkin.yml new file mode 100644 index 0000000000..5a3f539734 --- /dev/null +++ b/Resources/Prototypes/_CP14/Entities/Structures/Flora/royalpumpkin.yml @@ -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 diff --git a/Resources/Prototypes/_CP14/Procedural/Demiplane/Modifiers/test.yml b/Resources/Prototypes/_CP14/Procedural/Demiplane/Modifiers/test.yml index 76feaae69a..15b35b7850 100644 --- a/Resources/Prototypes/_CP14/Procedural/Demiplane/Modifiers/test.yml +++ b/Resources/Prototypes/_CP14/Procedural/Demiplane/Modifiers/test.yml @@ -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 \ No newline at end of file + 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 diff --git a/Resources/Textures/_CP14/Mobs/Monster/pumpkin_king.rsi/brother_pumpkin_king.png b/Resources/Textures/_CP14/Mobs/Monster/pumpkin_king.rsi/brother_pumpkin_king.png new file mode 100644 index 0000000000..c4f9940063 Binary files /dev/null and b/Resources/Textures/_CP14/Mobs/Monster/pumpkin_king.rsi/brother_pumpkin_king.png differ diff --git a/Resources/Textures/_CP14/Mobs/Monster/pumpkin_king.rsi/meta.json b/Resources/Textures/_CP14/Mobs/Monster/pumpkin_king.rsi/meta.json new file mode 100644 index 0000000000..719919fb59 --- /dev/null +++ b/Resources/Textures/_CP14/Mobs/Monster/pumpkin_king.rsi/meta.json @@ -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" + } + ] +} diff --git a/Resources/Textures/_CP14/Mobs/Monster/pumpkin_king.rsi/pumpkin_king.png b/Resources/Textures/_CP14/Mobs/Monster/pumpkin_king.rsi/pumpkin_king.png new file mode 100644 index 0000000000..d9d7449447 Binary files /dev/null and b/Resources/Textures/_CP14/Mobs/Monster/pumpkin_king.rsi/pumpkin_king.png differ diff --git a/Resources/Textures/_CP14/Structures/Flora/royal_pumpkin.rsi/meta.json b/Resources/Textures/_CP14/Structures/Flora/royal_pumpkin.rsi/meta.json new file mode 100644 index 0000000000..d179640a3e --- /dev/null +++ b/Resources/Textures/_CP14/Structures/Flora/royal_pumpkin.rsi/meta.json @@ -0,0 +1,14 @@ +{ + "version": 1, + "license": "CLA", + "copyright": "Created by KREKS for CrystallPunk14", + "size": { + "x": 64, + "y": 64 + }, + "states": [ + { + "name": "royal_pumpkin" + } + ] +} diff --git a/Resources/Textures/_CP14/Structures/Flora/royal_pumpkin.rsi/royal_pumpkin.png b/Resources/Textures/_CP14/Structures/Flora/royal_pumpkin.rsi/royal_pumpkin.png new file mode 100644 index 0000000000..3ae2bda64d Binary files /dev/null and b/Resources/Textures/_CP14/Structures/Flora/royal_pumpkin.rsi/royal_pumpkin.png differ