Immovable Rod visual variations (#25932)

* Adds variations to immovable rod

* slash oopsie

* Changed prototypes from being hardcoded to being defined in the rules component

* Changed from 10% chance to 5%

* Changes based on feedback

* Fix nullable error

* Moved randomized logic to .yaml. Probabilities of alternate rods add up to 5%.
This commit is contained in:
SlamBamActionman
2024-03-24 23:45:52 +01:00
committed by GitHub
parent a8b714af3f
commit 8f652eaa75
4 changed files with 122 additions and 6 deletions

View File

@@ -60,3 +60,86 @@
components:
- type: ImmovableRod
randomizeVelocity: false
- type: entity
parent: ImmovableRodKeepTilesStill
id: ImmovableRodMop
name: immovable mop
description: Hurled like a javelin, with the power of a thousand furious janitors.
components:
- type: Sprite
sprite: Objects/Specific/Janitorial/mop.rsi
state: mop
rotation: 225
noRot: false
- type: entity
parent: ImmovableRodKeepTilesStill
id: ImmovableRodShark
name: immovable shark
description: SHARK TORNADO!
components:
- type: Sprite
sprite: Objects/Fun/sharkplush.rsi
state: blue
rotation: 90
noRot: false
- type: entity
parent: ImmovableRodKeepTilesStill
id: ImmovableRodClown
name: immovable clown
description: Ejected from the neighbouring station one solar system over. HONK!
components:
- type: Sprite
sprite: Markers/jobs.rsi
state: clown
rotation: 180
noRot: false
- type: entity
parent: ImmovableRodKeepTilesStill
id: ImmovableRodBanana
name: immovable banana
description: At least you won't slip on it.
components:
- type: Sprite
sprite: Objects/Specific/Hydroponics/banana.rsi
state: produce
noRot: false
- type: entity
parent: ImmovableRodKeepTilesStill
id: ImmovableRodHammer
name: immovable hammer
description: Bwoink.
components:
- type: Sprite
sprite: Objects/Weapons/Melee/sledgehammer.rsi
state: icon
rotation: 225
noRot: false
- type: entity
parent: ImmovableRodKeepTilesStill
id: ImmovableRodThrongler
name: immovable throngler
description: If you catch it, you can keep it.
components:
- type: Sprite
sprite: Objects/Weapons/Melee/Throngler2.rsi
state: icon
rotation: 225
noRot: false
- type: entity
parent: ImmovableRodKeepTilesStill
id: ImmovableRodGibstick
name: immovable gibstick
description: What did you expect?
components:
- type: Sprite
sprite: Objects/Weapons/Melee/debug.rsi
state: icon
rotation: 225
noRot: false

View File

@@ -454,6 +454,31 @@
earliestStart: 45
minimumPlayers: 20
- type: ImmovableRodRule
rodPrototypes:
- id: ImmovableRodKeepTilesStill
prob: 0.95
orGroup: rodProto
- id: ImmovableRodMop
prob: 0.0072
orGroup: rodProto
- id: ImmovableRodShark
prob: 0.0072
orGroup: rodProto
- id: ImmovableRodClown
prob: 0.0072
orGroup: rodProto
- id: ImmovableRodBanana
prob: 0.0072
orGroup: rodProto
- id: ImmovableRodHammer
prob: 0.0072
orGroup: rodProto
- id: ImmovableRodThrongler
prob: 0.0072
orGroup: rodProto
- id: ImmovableRodGibstick
prob: 0.0072
orGroup: rodProto
- type: entity
noSpawn: true