register logic

This commit is contained in:
2026-08-29 23:59:56 +02:00
parent ddea3b0893
commit 94649a38fe
83 changed files with 830 additions and 699 deletions
+5 -5
View File
@@ -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."),
),
}
})
}