Skip to content

Commit

Permalink
Add default whistle + whistles reorganize (#27676)
Browse files Browse the repository at this point in the history
* Add default whistle + whistle reorganize

* aaa

* fux?

* fiiiiix???

* Revert "fiiiiix???"

This reverts commit 15353465d58db615185afa8c549e1819099c1a5b.

* Apply suggestions from code review

Co-authored-by: Tayrtahn <[email protected]>

---------

Co-authored-by: Tayrtahn <[email protected]>
  • Loading branch information
lzk228 and Tayrtahn authored May 5, 2024
1 parent 45fc6be commit ead78b7
Show file tree
Hide file tree
Showing 11 changed files with 53 additions and 44 deletions.
30 changes: 19 additions & 11 deletions Resources/Prototypes/Entities/Objects/Fun/whistles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@
description: Someone forgot to turn off kettle?
components:
- type: Item
sprite: Objects/Fun/whistles.rsi
size: Tiny
- type: Sprite
sprite: Objects/Fun/whistles.rsi
- type: Clothing
sprite: Objects/Fun/whistles.rsi
quickEquip: false
slots: neck
- type: UseDelay
Expand All @@ -16,18 +20,26 @@
sound:
collection: BaseWhistle
- type: Whistle
distance: 5
distance: 3

- type: entity
parent: BaseWhistle
id: Whistle
components:
- type: Sprite
state: whistle

- type: entity
parent: BaseWhistle
id: SecurityWhistle
description: Sound of it make you feel fear.
components:
- type: Sprite
sprite: Objects/Fun/whistle.rsi
state: securityWhistle
- type: Item
sprite: Objects/Fun/whistle.rsi
state: sec
- type: Clothing
equippedPrefix: sec
- type: Whistle
distance: 5

- type: entity
parent: BaseWhistle
Expand All @@ -36,13 +48,9 @@
description: A whistle used by Syndicate commanders to draw attention. Avanti!
components:
- type: Sprite
sprite: Clothing/Neck/Misc/whistles.rsi
state: icon
state: trench
- type: Clothing
sprite: Clothing/Neck/Misc/whistles.rsi
quickEquip: False
slots:
- neck
equippedPrefix: trench
- type: EmitSoundOnUse
sound:
collection: TrenchWhistle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
- PlushiePenguin
- PlushieHuman
- ClothingHeadHatCowboyRed
- Whistle
- type: WiresPanel
- type: Wires
layoutId: Arcade
Expand Down
19 changes: 0 additions & 19 deletions Resources/Textures/Clothing/Neck/Misc/whistles.rsi/meta.json

This file was deleted.

14 changes: 0 additions & 14 deletions Resources/Textures/Objects/Fun/whistle.rsi/meta.json

This file was deleted.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions Resources/Textures/Objects/Fun/whistles.rsi/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "sec and whistle made by Foleps (discord), trench by Firewatchin (discord)",
"size": {
"x": 32,
"y": 32
},

"states": [
{
"name": "equipped-NECK",
"directions": 4
},
{
"name": "whistle"
},
{
"name": "sec-equipped-NECK",
"directions": 4
},
{
"name": "sec"
},
{
"name": "trench-equipped-NECK",
"directions": 4
},
{
"name": "trench"
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ead78b7

Please sign in to comment.