Issix-mod/Modules/IssixModule/Scenes/PlayerCellModifierScene.gd
Frisk f0e24b40f3 Fixes
Fixed exiting the computer scene
Added more content warnings for corruption scene
Attempted to improve handling in Lamia's artwork help
Fixed reported crash in training session
Fixed types for pet's time display
2024-12-27 11:57:11 +01:00

47 lines
1.9 KiB
GDScript

extends SceneBase
func _init():
sceneID = "PlayerCellLamiaPortraitScene"
#func _reactInit():
# endScene()
# return
func _run():
if(state == ""):
saynn("You can choose to put artwork on the wall of your cell if you'd like to.")
if (getModuleFlag("IssixModule", "Lamia_Chosen_Drawing") == "simplepc" and getModuleFlag("IssixModule", "PC_Saw_Artwork_At_Lamias", null) == false):
addButton("Put artwork", "Put your simplistic artwork enchanted by Lamia on your wall", "putsimple")
if getModuleFlag("IssixModule", "Received_Portrait_From_Lamia", false):
addButton("Put artwork", "Put the portrait on your wall", "putportrait")
addButton("Don't put", "Don't hang your portrait on the wall (won't ask in the future)", "dontput")
addButton("Ignore", "Don't do anything with it for now", "endthescene")
if state == "putsimple":
saynn("You grab the piece of paper with your artwork on it, find a tape in your stash and hang it on the wall. It will remind you of your old place.")
addButton("Back", "Job well done", "endthescene")
if(state == "putportrait"):
saynn("You grab your portrait you got from Lamia, find some scraps of a tape in your stash and hang it on the wall. It looks wonderful. Reminds you of a great moment you shared with Lamia... And shows everyone who comes near who's cell it is.")
addButton("Back", "Job well done", "endthescene")
if state == "dontput":
saynn("You grab your portrait you got from Lamia and stash it.")
addButton("Back", "Job well done", "endthescene")
func _react(_action: String, _args):
if _action == "dontput":
setModuleFlag("IssixModule", "Placed_Portrait_In_Cell", false)
if _action == "putportrait":
setModuleFlag("IssixModule", "Placed_Portrait_In_Cell", true)
if _action == "putsimple":
setModuleFlag("IssixModule", "PC_Saw_Artwork_At_Lamias", true)
if(_action == "endthescene"):
endScene()
return
setState(_action)