source: trunk/game/objects/object_database.yaml @ 610

Revision 610, 4.1 KB checked in by beliar, 9 years ago (diff)

Patch by Beliar.

  • Added "Open" action to InventoryItems?. This will open a ContainerGui? for now. Should make a gui that can reflect the actual possible size of the container.
  • Split OpenBoxAction? into a generic OpenAction?, for Containers that are not "openable" and a OpenBoxAction? for all Containers that are "openable" (The latter ones have an "open" method)
  • Moved SingleItemContainer? from composed to base and made it derive from the normal Container class.
  • Added a SingleItemCarryableContainer? class
  • MapItems? in the agent files can now have an attributes item.
  • Added container attribute to possible MapItem? attributes
  • MapItems? that have the "Container" attribute will have the "Open" action automatically added on creation.
  • Inventory now uses Container from base instead of CarryableContainer? from composed
  • Gave "Pot" the "Container" attribute
  • Added ItemSelf? exception to Container which will be raised when trying to place a container in itself.
  • ContainerGui? and InventoryGui? now catch exceptions from the Container
  • Removed debug print statements left over in inventory_gui
  • Property svn:eol-style set to native
Line 
1#   This file is part of PARPG.
2
3#   PARPG is free software: you can redistribute it and/or modify
4#   it under the terms of the GNU General Public License as published by
5#   the Free Software Foundation, either version 3 of the License, or
6#   (at your option) any later version.
7
8#   PARPG is distributed in the hope that it will be useful,
9#   but WITHOUT ANY WARRANTY; without even the implied warranty of
10#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11#   GNU General Public License for more details.
12
13#   You should have received a copy of the GNU General Public License
14#   along with PARPG.  If not, see <http://www.gnu.org/licenses/>.
15---
16Footlocker:
17  name: Footlocker
18  text: Just a normal footlocker used to store items.
19  gfx: lock_box_metal01
20---
21WoodenCrate:
22  name: Wooden Crate
23  text: A battered crate
24  gfx: crate
25---
26ShantyDoor:
27  name: Shanty Door
28  text: Looks like the entrance to the building.
29  gfx: shanty-door
30---
31Dagger:
32  name: Dagger
33---
34Pamphlet:
35  name: Pamphlet
36  image: /gui/inv_images/inv_pamphlet.png
37  actions:
38    Read:
39      text: Brew Your Own Beer. Beer in 4 easy steps. You think with this information you are able to brew your own beer easily.
40      commands:
41        - {Command: SetQuestVariable, ID: beer, Variable: beer_instructions, Value: Read}
42---
43Box:
44  name: Box
45  image: /gui/inv_images/inv_giftbox.png
46  actions:
47    Use:
48      text: Open
49      commands:
50        - {Command: ReplaceItem, ObjectType: Boots, ID: Boots}
51        - {Command: SetQuestVariable, ID: fedex, Variable: open_box, Value: 1}
52---
53Boots:
54  name: Boots
55  image: /gui/inv_images/inv_boots.png
56  actions:
57    Look:
58      text: Old, worn pair of boots. Patched, but looks comfy.
59---
60Yeast:
61  name: Yeast
62  image: /gui/inv_images/inv_yeast_bag.png
63  actions:
64    Look:
65      text: Small bag of instant dried yeast.
66---
67Grain:
68  name: Grain
69  image: /gui/inv_images/inv_grain.png
70  gfx: grain
71  actions:
72    Look:
73      text: Some kind of grain, looks like its barley malt.
74---
75A pack of Instant Taters:
76  name: A pack of Instant Taters
77  image: /gui/inv_images/inv_instant_taters.png
78  actions:
79    Look:
80      text: Full pack of instant potatoes. "Now with butter flavour! Just add water!" Yummy!
81---
82Wild potato:
83  name: Wild potato
84  image: /gui/inv_images/inv_potato.png   
85  gfx: potatoes
86  actions:
87    Look:
88      text: Wild potato. Looks appetizing!
89---
90Rotten yam:
91  name: Rotten yam
92  image: /gui/inv_images/inv_yam.png
93  gfx: rotten_yam
94  actions:
95    Look:
96      text: Yuck! Hard to believe its edible! And how did it get here? Or rather - how old is this?
97---
98Pot:
99  name: Old pot
100  image: /gui/inv_images/inv_pot.png
101  attributes: [Container]
102  actions:
103    Look:
104      text: Old pot. Rusty, sooty, heavyweight and durable.
105---
106Butcher's hook:
107  name: Meat hook
108  image: /gui/inv_images/inv_meathook.png
109  actions:
110    Look:
111      text: Heavy, sturdy meat hook.
112---
113Empty beer bottle:
114  name: Empty beer bottle
115  image: /gui/inv_images/inv_beer_bottle_empty.png
116  gfx: bottle
117  actions:
118    Look:
119      text: This bottle has few cracks here and there, but it should keep your brew sealed and fresh.
120---
121Beer:
122  name: Beer
123  image: /gui/inv_images/inv_beer_full.png
124  gfx: bottle
125  actions:
126    Look:
127      text: Oooh! So refreshing, so gooood!
128---
129Small pocket knife:
130  name: Small pocket knife
131  image: /gui/inv_images/inv_pocketknife.png
132  actions:
133    Look:
134      text: A small pocket knife, simple, rusty and neglected, with a single crude blade only.
135---
136Bag of grain:
137  name: Bag of grain
138  image: /gui/inv_images/inv_grain_bag.png
139---
140Wood:
141  name: Wood
142  image: /gui/inv_images/inv_wood.png
143  gfx: wood
144  actions:
145    Look:
146      text: Few pieces of chopped wood. Dry enough to make a fire.
147---
148Pure water:
149  name: Pure water
150  image: /gui/inv_images/inv_water_plain.png
151  actions:
152    Look:
153      text: A bottle with crystal clear water. Good to drink, good to cook with, whatever you wish.
154---
155Questionable water:
156  name: Water
157  image: /gui/inv_images/inv_water_muddy.png
158  actions:
159    Look:
160      text: A bottle with muddy water inside. Will it make you sick? You don't know until you try it!
161     
162             
Note: See TracBrowser for help on using the repository browser.