coffin fixes

This commit is contained in:
Beck 2026-06-04 18:30:11 -07:00
parent 50172d052c
commit 02e3ef26bd

View file

@ -72,7 +72,7 @@ class RestlessGhostListeners : InteractionListener {
INCOMPLETE_COFFIN_OPEN -> {
//close it
visualize(player, Animations_HUMAN_CLOSE_CHEST_535, -1)
SceneryBuilder.replace(coffin, coffin.transform(CLOSED_COFFIN), 200)
SceneryBuilder.replace(coffin, coffin.transform(CLOSED_COFFIN))
}
CLOSED_COFFIN -> {
//open it
@ -80,9 +80,9 @@ class RestlessGhostListeners : InteractionListener {
if (isQuestComplete(player, Quests.THE_RESTLESS_GHOST)) {
//full skele with skull
SceneryBuilder.replace(coffin, coffin.transform(COMPLETE_COFFIN_OPEN), 200)
SceneryBuilder.replace(coffin, coffin.transform(COMPLETE_COFFIN_OPEN))
} else {
SceneryBuilder.replace(coffin, coffin.transform(INCOMPLETE_COFFIN_OPEN), 200)
SceneryBuilder.replace(coffin, coffin.transform(INCOMPLETE_COFFIN_OPEN))
}
}
}
@ -111,7 +111,7 @@ class RestlessGhostListeners : InteractionListener {
//despawn ghost after awhile and shut the coffin
queueScript(player, 100) { _ ->
ghost.clear()
//toggleCoffinSceneryObj(player, node)
toggleCoffinSceneryObj(player, node)
return@queueScript stopExecuting(player)
}
}