Fix dud modular grenade visuals (#28265)

This commit is contained in:
Leon Friedrich 2024-05-26 08:03:05 +12:00 committed by null
parent 7f6d5233df
commit 7cdca77ba3
No known key found for this signature in database
GPG Key ID: 212F05528FD678BE
4 changed files with 35 additions and 4 deletions

View File

@ -320,11 +320,12 @@
emptyCase: { state: empty }
wiredCase: { state: wired }
caseWithTrigger: { state: no-payload }
caseWithPayload: { state: no-trigger }
grenade: { state: complete }
enum.Trigger.TriggerVisuals.VisualState:
enum.ConstructionVisuals.Layer:
Primed: { state: primed }
Unprimed: { state: complete }
# Unprimed: <Use state determined by enum.ConstructionVisuals.Layer>
- type: StaticPrice
price: 25

View File

@ -12,7 +12,7 @@
doAfter: 1
- node: emptyCase
entity: ModularGrenade
entity: ModularGrenade
actions:
- !type:AppearanceChange
edges:
@ -31,7 +31,7 @@
doAfter: 2
- node: wiredCase
entity: ModularGrenade
entity: ModularGrenade
actions:
- !type:AppearanceChange
- !type:PlaySound
@ -50,6 +50,12 @@
store: payloadTrigger
name: Trigger
doAfter: 0.5
- to: caseWithPayload
steps:
- tag: Payload
store: payload
name: Payload
doAfter: 0.5
- node: caseWithTrigger
actions:
@ -71,6 +77,26 @@
name: Payload
doAfter: 0.5
- node: caseWithPayload
actions:
- !type:AppearanceChange
- !type:PlaySound
sound: /Audio/Machines/button.ogg
edges:
- to: wiredCase
steps:
- tool: Prying
doAfter: 0.5
completed:
- !type:EmptyContainer
container: payload
- to: grenade
steps:
- component: PayloadTrigger
store: payloadTrigger
name: Trigger
doAfter: 0.5
- node: grenade
actions:
- !type:AppearanceChange

View File

@ -1,7 +1,7 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/29c0ed1b000619cb5398ef921000a8d4502ba0b6 and modified by Swept",
"copyright": "Taken from tgstation at commit https://github.com/tgstation/tgstation/commit/29c0ed1b000619cb5398ef921000a8d4502ba0b6 and modified by Swept & ElectroSR",
"size": {
"x": 32,
"y": 32
@ -19,6 +19,10 @@
"name": "no-payload",
"directions": 1
},
{
"name": "no-trigger",
"directions": 1
},
{
"name": "complete",
"directions": 1

Binary file not shown.

After

Width:  |  Height:  |  Size: 347 B