Skip to content

Commit

Permalink
Fix stone breeds (#559)
Browse files Browse the repository at this point in the history
* Fix Stone Breeds

* Fix 1

* FIx 2

* Fix 3

* Round 4

* Final Fix
  • Loading branch information
YmepIIIij-TeRorIst authored Nov 8, 2024
1 parent 8013b88 commit 2f91247
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@
tags:
- CP14HerbalGathering
components:
- Sharp
- Sharp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
name: blood rose
description: Scarlet flowers growing where blood has been spilled.
suffix: Gatherable
components:
components:
- type: Sprite
drawdepth: FloorTiles
sprite: _CP14/Structures/Flora/Flowers/red_rose.rsi
Expand Down Expand Up @@ -132,7 +132,7 @@
- type: Gatherable
loot:
All: CP14GatherWildSage

# LumiMushroom

- type: entityLootTable
Expand Down Expand Up @@ -184,7 +184,7 @@
drawdepth: Mobs
sprite: _CP14/Structures/crystal.rsi
offset: 0, 0.25
noRot: true
noRot: true
layers:
- state: big
map: ["random"]
Expand All @@ -204,6 +204,12 @@
collection: GlassSmash
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- trigger:
!type:DamageTrigger
damage: 20
Expand All @@ -218,6 +224,8 @@
CP14QuartzShard:
min: 1
max: 3
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: RandomSprite
available:
- random:
Expand Down
20 changes: 16 additions & 4 deletions Resources/Prototypes/_CP14/Entities/Structures/Flora/rocks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
categories: [ ForkFiltered ]
abstract: true
placement:
mode: SnapgridCenter
mode: SnapgridCenter
components:
- type: Transform
anchored: True
Expand Down Expand Up @@ -55,10 +55,14 @@
thresholds:
- trigger:
!type:DamageTrigger
damage: 75
damage: 150
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 75
behaviors:
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/break_stone.ogg
Expand All @@ -69,6 +73,8 @@
CP14StoneBlock1:
min: 2
max: 3
- !type:DoActsBehavior
acts: [ "Destruction" ]

- type: entity
id: CP14RockBig
Expand Down Expand Up @@ -102,10 +108,14 @@
thresholds:
- trigger:
!type:DamageTrigger
damage: 150
damage: 300
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 150
behaviors:
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/break_stone.ogg
Expand All @@ -115,4 +125,6 @@
spawn:
CP14StoneBlock1:
min: 5
max: 8
max: 8
- !type:DoActsBehavior
acts: [ "Destruction" ]
45 changes: 38 additions & 7 deletions Resources/Prototypes/_CP14/Entities/Structures/Walls/natural.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
damage: 350
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/break_stone.ogg
Expand All @@ -31,6 +35,9 @@
CP14StoneBlock1:
min: 2
max: 3
- !type:DoActsBehavior
acts: ["Destruction"]


- type: entity
id: CP14WallStoneIndestructable
Expand Down Expand Up @@ -65,10 +72,14 @@
thresholds:
- trigger:
!type:DamageTrigger
damage: 50
damage: 150
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- trigger:
!type:DamageTrigger
damage: 50
behaviors:
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/break_stone.ogg #TODO
Expand All @@ -79,6 +90,8 @@
CP14DirtBlock1:
min: 2
max: 3
- !type:DoActsBehavior
acts: ["Destruction"]
- type: Construction
graph: CP14WallDirt
node: WallDirt
Expand All @@ -97,10 +110,14 @@
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
damage: 250
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/break_stone.ogg
Expand All @@ -111,6 +128,8 @@
CP14OreCopper:
min: 1
max: 3
- !type:DoActsBehavior
acts: ["Destruction"]

- type: entity
id: CP14WallStoneIronOre
Expand All @@ -126,10 +145,14 @@
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
damage: 300
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/break_stone.ogg
Expand All @@ -140,6 +163,8 @@
CP14OreIron:
min: 1
max: 3
- !type:DoActsBehavior
acts: ["Destruction"]

- type: entity
id: CP14WallStoneGoldOre
Expand All @@ -155,10 +180,14 @@
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
damage: 300
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/break_stone.ogg
Expand All @@ -169,12 +198,14 @@
CP14OreGold:
min: 1
max: 3
- !type:DoActsBehavior
acts: ["Destruction"]
- type: IconSmooth
base: wall

# We dont have silver now

#- type: entity
#- type: entity
# id: CP14WallStoneSilverOre
# suffix: silver ore
# parent: CP14WallStone
Expand Down Expand Up @@ -206,4 +237,4 @@
# min: 2
# max: 3
# - type: IconSmooth
# base: wall
# base: wall
38 changes: 25 additions & 13 deletions Resources/Prototypes/_CP14/Entities/Structures/crystal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

- type: entity
id: CP14WallmountCrystalBase
parent:
parent:
- CP14BaseWallmount
abstract: true
name: sparkling quartz
Expand All @@ -23,18 +23,24 @@
thresholds:
- trigger:
!type:DamageTrigger
damage: 20
damage: 80
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 20
behaviors:
- !type:PlaySoundBehavior
sound:
collection: GlassBreak
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:SpawnEntitiesBehavior
spawn:
CP14QuartzShard:
min: 0
max: 1
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: Fixtures
fixtures:
fix1:
Expand Down Expand Up @@ -134,7 +140,7 @@
layers:
- state: big
shader: unshaded
noRot: true
noRot: true
- type: InteractionPopup
interactSuccessString: popup-cp14crystal-ding
messagePerceivedByOthers: popup-cp14crystal-ding
Expand All @@ -153,18 +159,24 @@
thresholds:
- trigger:
!type:DamageTrigger
damage: 20
damage: 80
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 20
behaviors:
- !type:PlaySoundBehavior
sound:
collection: GlassBreak
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:SpawnEntitiesBehavior
spawn:
CP14QuartzShard:
min: 1
max: 3
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: Fixtures
fixtures:
fix1:
Expand All @@ -179,7 +191,7 @@
- LowImpassable
- BulletImpassable
- Opaque

- type: PointLight
radius: 2
energy: 2
Expand Down Expand Up @@ -212,7 +224,7 @@
sprite: _CP14/Structures/crystal.rsi
layers:
- state: medium
color: "#ff3d0b"
color: "#ff3d0b"

- type: entity
id: CP14CrystalRubiesBig
Expand Down Expand Up @@ -257,7 +269,7 @@
sprite: _CP14/Structures/crystal.rsi
layers:
- state: medium
color: "#ffe269"
color: "#ffe269"

- type: entity
id: CP14CrystalTopazesBig
Expand Down Expand Up @@ -302,7 +314,7 @@
sprite: _CP14/Structures/crystal.rsi
layers:
- state: medium
color: "#30be81"
color: "#30be81"

- type: entity
id: CP14CrystalEmeraldsBig
Expand Down Expand Up @@ -347,7 +359,7 @@
sprite: _CP14/Structures/crystal.rsi
layers:
- state: medium
color: "#5eabeb"
color: "#5eabeb"

- type: entity
id: CP14CrystalSapphiresBig
Expand Down

0 comments on commit 2f91247

Please sign in to comment.