register logic
This commit is contained in:
@@ -4,16 +4,16 @@ import (
|
||||
inkwell "git.teletypegames.org/engines/inkwell"
|
||||
)
|
||||
|
||||
func scriptTapeInsert(w *World) inkwell.Script {
|
||||
return inkwell.Script{
|
||||
func init() {
|
||||
ScriptManager.Register(Script{
|
||||
Name: ScriptTapeInsert,
|
||||
Actions: inkwell.Seq(
|
||||
Fn(func(ctx *inkwell.Ctx) {
|
||||
item := w.TakePending()
|
||||
item := World.TakePending()
|
||||
if item == "" {
|
||||
return
|
||||
}
|
||||
w.SetSlot2(item)
|
||||
World.SetSlot2(item)
|
||||
ctx.Game.Inventory.Remove(item)
|
||||
ctx.Game.State.SetVar(VarArmillaStrip, "SLOT2: READING")
|
||||
}),
|
||||
@@ -21,5 +21,5 @@ func scriptTapeInsert(w *World) inkwell.Script {
|
||||
TapeSay(Dex, "Clicked in. Spinning. And now: nothing."),
|
||||
TapeSay(Dex, "A stranger's tape in your own Armilla, Paul. I hope you know what you're doing."),
|
||||
),
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user