-1:000000000000 | 0:cc66ad6b0d75 |
---|---|
1 | |
2 --[[ | |
3 A general 'drinks' object | |
4 | |
5 by Manole Paul-Sebastian (brokenthorn) | |
6 ]] | |
7 | |
8 classes.obj_window = | |
9 { | |
10 _properties = { name = "drinks", longname = "various drinks", desc = "You see various drinks in various containers." }; | |
11 _parent = nil; | |
12 | |
13 drink = function (self, e) | |
14 e.person:_say("/me drinks"); -- too simple message? | |
15 end, | |
16 | |
17 -- other functions that could be writen: 'taste','buy','sell','open' | |
18 } |