Skip to content

Commit

Permalink
EMERGENCY FIX #2: FREESLOT EDITION
Browse files Browse the repository at this point in the history
  • Loading branch information
Saxashitter committed Sep 7, 2024
1 parent 87e27e3 commit 2f2e0ea
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
16 changes: 11 additions & 5 deletions src/Lua/Gimmicks/doors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,25 @@ PTSR.doors = {
["exit"] = {}
}

states[freeslot "S_PTSR_DOOR"] = {
sprite = freeslot "SPR_PDOR",
freeslot("S_PTSR_DOOR")
freeslot("SPR_PDOR")
freeslot("S_PTSR_DOOR_LOCKED")
freeslot("S_PTSR_DOOR_UNLOCKED")
freeslot("SPR_PDKE")

states[S_PTSR_DOOR] = {
sprite = SPR_PDOR,
frame = A,
tics = -1
}

states[freeslot "S_PTSR_DOOR_LOCKED"] = {
sprite = freeslot "SPR_PDKE",
states[S_PTSR_DOOR_LOCKED] = {
sprite = SPR_PDKE,
frame = A,
tics = -1
}

states[freeslot "S_PTSR_DOOR_UNLOCKED"] = {
states[S_PTSR_DOOR_UNLOCKED] = {
sprite = SPR_PDKE,
frame = B,
tics = -1
Expand Down
13 changes: 9 additions & 4 deletions src/Lua/Gimmicks/keys.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
PTSR.keys = {}

states[freeslot "S_PTSR_KEY"] = {
sprite = freeslot "SPR_PKEY",
freeslot("S_PTSR_KEY")
freeslot("SPR_PKEF")
freeslot("S_PTSR_KEY_EFFECT")
freeslot("SPR_PKEY")

states[S_PTSR_KEY] = {
sprite = SPR_PKEY,
frame = A,
tics = -1
}

states[freeslot "S_PTSR_KEY_EFFECT"] = {
sprite = freeslot "SPR_PKEF",
states[S_PTSR_KEY_EFFECT] = {
sprite = SPR_PKEF,
frame = FF_ANIMATE|A,
tics = 7*2,
var1 = G,
Expand Down

0 comments on commit 2f2e0ea

Please sign in to comment.