refact
This commit is contained in:
18
lib/item.key.go
Normal file
18
lib/item.key.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package lib
|
||||
|
||||
import p "git.teletypegames.org/games/pncdsl"
|
||||
|
||||
var Key = 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."),
|
||||
),
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user