9 static const String TXT_BLINDED;
11 static std::vector<String> scrolls;
14 static std::vector<String> runes;
17 static std::vector<int> images;
28 static void save(Bundle* bundle);
29 static void restore(Bundle* bundle);
32 virtual void execute(
Hero* hero,
const std::string action);
38 virtual std::string
Name() {
39 return isKnown() ?
name :
"scroll \"" + rune +
"\"";
48 static std::set<std::string>
getKnown();
50 return handler->unknown();
53 return handler->known.size() == scrolls.size();
75 static const String TXT_WARNING;
76 static const String TXT_YES;
77 static const String TXT_NO;
79 void confirmCancelation();
90 std::string(
"Permanently reveals all of the secrets of a single item.");
108 std::string(
"When this scroll is read, an image of crystal clarity will be etched into your memory, ") +
109 std::string(
"alerting you to the precise layout of the level and revealing all hidden secrets. ") +
110 std::string(
"The locations of items and creatures will remain unknown.");
121 static const String TXT_LAYOUT;
130 std::string(
"The raw magical power bound up in this parchment will, when released, ") +
131 std::string(
"recharge all of the reader's wands to full power.");
150 std::string(
"The incantation on this scroll will instantly strip from ") +
151 std::string(
"the reader's weapon, armor, rings and carried items any evil ") +
152 std::string(
"enchantments that might prevent the wearer from removing them.");
155 static boolean uncurse(
Hero* hero,
const std::vector<Item*>& items);
164 static const String TXT_PROCCED;
165 static const String TXT_NOT_PROCCED;
180 std::string(
"The spell on this parchment instantly transports the reader ") +
181 std::string(
"to a random location on the dungeon level. It can be used ") +
182 std::string(
"to escape a dangerous situation, but the unlucky reader might ") +
183 std::string(
"find himself in an even more dangerous place.");
200 std::string(
"When read aloud, this scroll will unleash a challenging roar ") +
201 std::string(
"that will awaken all monsters and alert them to the reader's location.");
215 std::string(
"A flash of red light will overwhelm all creatures in your field of view with terror, ") +
216 std::string(
"and they will turn and flee. Attacking a fleeing enemy will dispel the effect.");
233 std::string(
"A soothing melody will put all creatures in your field of view into a deep sleep, ") +
234 std::string(
"giving you a chance to flee or make a surprise attack on them.");
251 std::string(
"This scroll contains destructive energy, that can be psionically channeled to inflict a ") +
252 std::string(
"massive damage to all creatures within a field of view. An accompanying flash of light will ") +
253 std::string(
"temporarily blind everybody in the area of effect including the reader of the scroll.");
266 static const int NIMAGES = 3;
271 "The incantation on this scroll will create illusionary twins of the reader, which will chase his enemies.";
281 static const String TXT_LOOKS_BETTER;
289 std::string(
"This scroll will upgrade a single item, improving its quality. A wand will ") +
290 std::string(
"increase in power and in number of charges; a weapon will inflict more damage ") +
291 std::string(
"or find its mark more frequently; a suit of armor will deflect additional blows; ") +
292 std::string(
"the effect of a ring on its wearer will intensify. Weapons and armor will also ") +
293 std::string(
"require less strength to use, and any curses on the item will be lifted.");
303 static const String TXT_GLOWS;
312 std::string(
"This scroll is able to imbue a weapon or an armor ") +
313 std::string(
"with a random enchantment, granting it a special power.");
virtual Item * upgrade()
Definition item.h:124
Item()
Definition item.cpp:65
virtual int price()
Definition item.h:94
std::string name
Definition item.h:48
int quantity
Definition item.h:62
Definition itemstatushandler.h:10
std::string String
Definition typedefine.h:8