initial commit

This commit is contained in:
2026-05-25 21:28:04 +02:00
commit d74acc58de
22 changed files with 570 additions and 0 deletions

20
domain/item.key.go Normal file
View File

@@ -0,0 +1,20 @@
package domain
import p "git.teletypegames.org/games/pncdsl"
func defineKey(g *p.Game) {
g.ItemManager.Register(p.Item{
Name: "key",
Sprite: "spr/key",
Description: "rozsdás kulcs",
OnUseWith: map[string]p.Action{
"cupboard": p.Seq(
p.Say("player", "Klikk."),
p.SetFlag(FlagCupboardOpen),
p.Give("beans"),
p.TakeAway("key"),
p.Say("player", "Bab van benne. Pont, ami kell."),
),
},
})
}