initial commit
This commit is contained in:
20
domain/item.key.go
Normal file
20
domain/item.key.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package domain
|
||||
|
||||
import p "pncdsl/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."),
|
||||
),
|
||||
},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user