Debian Codegraph @

src/borg/borg.txt

raw
1
2 # This file will allow you to customize your APWBorg along certain themes.
3 # The borg is fairly successful, having won the game several times.
4 # However, some players/observers of borgs would like to see it function
5 # differently. Some would like to see the borg play more aggressively, or
6 # more conservatively. While others would like to value armour class more.
7 # Still others would like to see it collect more speed items.
8
9 # With the expressions below, you can influence the borg's behavior and
10 # equipment selection choices. The 'borg_worship_' variables will influence
11 # his equipment selection by adding additional bonuses to items which
12 # enhance that attribute. For example: if a borg recieves 2000 pts for
13 # a single point of armour class, an 'ac worshipping' borg would receive
14 # 3000 pts. This bonus would significantly influence equipment choices.
15
16 # borg_worships_gold explained:
17 # The borg_worships_gold option will greatly impact how the borg treats items
18 # which he finds in the dungeon. With this opion on, he will return to town
19 # whenever he fills up with items then sell those items. This can cause
20 # the borg to lose some artifacts, since he will sell them even if not ID'd.
21 # Generally speaking the borg will not sell an item unless it is at least
22 # psuedo ID'd. The benefit of this option is that the borg will significantly
23 # increase his income at the low clevels. This will increase his survivablity
24 # by allowing him to invest in armour and arrows. With this on,
25 # he will not recall to town to sell stuff but climb the stairs instead.
26 # He will also not recall into the dungeon until dlevel 8 (instead of 5).
27 # This option has no effect after clevel 20. One other downside of this is
28 # that the borg will spend more time in town and may have to evade Vets more.
29
30 # To modify, simply set it to TRUE or FALSE.
31
32 # Worships
33
34 borg_worships_damage= FALSE
35 borg_worships_speed =FALSE
36 borg_worships_hp=FALSE
37 borg_worships_mana = FALSE
38 borg_worships_ac = FALSE
39 borg_worships_gold = FALSE
40
41
42 # use the POWER_ and REQ_ lines below. If false the borg will
43 # use the calcs in the C code. Which is recommended since I hone those
44 # more frequently than I do the dynamic calcs. Most borg users will
45 # have more successful borgs by leaving this option as FALSE.
46 # note: the dynamic calcs are slower than the internal calcs
47
48 borg_uses_dynamic_calcs = FALSE
49
50
51 # Risky
52
53 # A risky borg is one who is not confined by character level requirements
54 # in order to dive deeper. It is also more likely to stay in a battle than
55 # to teleport out. A risky borg will dive faster but is more likely to die.
56 # A risky borg is not concerned with killing uniques before diving deeper.
57 #
58 # A borg who scums for uniques will set the auto_scum flag in order to generate
59 # more exciting levels and hopefully encounter a unique
60 #
61 # borgs who kill_uniques will wait for uniques to die before diving deeper
62 # into the dungeon. Usually, he will not dive deeper then three uniques.
63 # Example, Unique Monsters who normally reside on levels 12, 15, and 18 are
64 # still alive so the borg will not dive deeper than level 18 until at least one
65 # of those uniques are dead. Setting this to FALSE will allow the borg to dive
66 # deeper, faster, not being held up by the uniques. But, he does run the risk
67 # of finding 3 or 4 uniques on one level. That can be a bit scary.
68
69 borg_plays_risky = FALSE
70 borg_kills_uniques = FALSE
71
72 # Swap Items
73
74 # The borg is designed to use Swap Items in the inventory. A swap item
75 # is an equipment item (like a sword or armour item) which posseses a
76 # desireable resistance or trait. If the borg is in danger, then he will
77 # consider exchanging his current item for the swap item. A prime example of
78 # this is at dungeon level 60. He is required to have several resists in
79 # place. If he does not have them then he will not dive deeper. However,
80 # with Swaps enabled he will select an item to cover the open resist then
81 # dive down. Having Swaps enabled allows the borg to dive deeper, faster.
82 # The draw back is the Swap Items take up two inventory slots.
83
84 borg_uses_swaps = TRUE
85
86
87
88 # Home Storage
89
90 # The borg has two routines to store items in the home. One is very
91 # effective and will make the best possible choice for adding an item to the
92 # home. Unfortunately, this function is very slow. A much faster routine
93 # will do a fine job at storing items in the home but it is not as
94 # efficient.
95
96 borg_slow_optimizehome = FALSE
97
98
99 # Respawn
100
101 # If the borg is in continual play mode (as with the screen saver),
102 # he will respawn a randomly generated character at death. This section
103 # allows the user to make certain bias for the type of character generated.
104 # You may select the race and or class and or minimal stats for the Borg.
105 # You may also select the minimal character level needed before the
106 # character dump is created in the game directory.
107
108 # With regards to race, the borg is programmed to accept the variety of
109 # user defined races which may be in the p_info.txt file. So the values
110 # given in table below are for the default races. But if you are bright
111 # enough to modify the p_info.txt file then you are bright enough to figure
112 # out that race 0 does not necessarily equal Human. It's just the first
113 # race listed in your p_info.txt file.
114 #
115 # RACE:-1 Random Race CLASS: -1 Random Class
116 # 0 Human 0 Warrior
117 # 1 Half Elf 1 Mage
118 # 2 Elf 2 Druid
119 # 3 Hobbit 3 Priest
120 # 4 Gnome 4 Necromancer
121 # 5 Dwarf 5 Paladin
122 # 6 Half Orc 6 Rogue
123 # 7 Half Troll 7 Ranger
124 # 8 Dunadan 8 Blackguard
125 # 9 High Elf
126 # 10 Kobold
127 #
128 # With regards to the stats. The minimal stats are rolled by the
129 # borg. CON will be 16, the secondary stat (usually DEX) will be 17,
130 # The primary stat will be 17. These are the maximal values which
131 # can be rolled (racial and class bonuses added after).
132 # If the borg can not reach the stats after 500,000 tries the game
133 # will just assign you a random stat.
134 #
135 # After killing Morgoth, generally, the borg will stop and allow you
136 # to inspect the victory. If you set the respawn_winners then after
137 # killing Morgoth,the borg will generate a new character. A map file
138 # is created so you can see what the final battle looked like.
139
140 borg_respawn_race = -1
141 borg_respawn_class = -1
142 borg_respawn_winners = FALSE
143
144
145 # Dumps
146
147 # This variable will determine the minimal character level at which the borg
148 # will create a character dump file. That file contains some vital information
149 # concerning the status of the borg at the time of his demise. It is placed
150 # in the user directory.
151 # The borg_save_death variable will tell the borg to save the game in the user
152 # directory so that it can be examined more closely. The clevel of the borg
153 # must at least equal the borg_dump_level in order for the game to save.
154
155 borg_dump_level = 1
156 borg_save_death = 1
157
158 # Auto Stops
159
160 # The borg is able to stop when it reaches a certain dungeon depth or character
161 # level. He will also stop when he wins the game. If you want him to keep
162 # playing, even after Morgoth is dead, then change the borg_stop_king to FALSE.
163 # Set the other values to the level at which you want the borg to stop. Set
164 # them out of bounds if you do not want him to stop.
165
166 borg_stop_dlevel = 128
167 borg_stop_clevel = 51
168 borg_no_deeper = 127
169 borg_stop_king = TRUE
170
171
172 # Chest Tolerance
173
174 # The borg is able to search, disarm, and open chests. There is a inherant
175 # risk when dealing with chests. The risk of setting off the trap vs the
176 # benefit of the loot within the chest. The game uses a straight forward
177 # formula for calculating the success of a chest. It is:
178 # randint(100) < the skill of the player minus the dificulty of the chest.
179 # Difficulties run from 1 to 63. I would recommend a tolerance of about 7
180 # for vanilla chests (since they suck) and about 15 for DrAngband.
181
182 borg_chest_fail_tolerance = 7
183
184
185 # Speed of the Borg
186
187 # You can slow the borg down several different ways. One way is to set the
188 # base game delay factor in the options menu. This will slow down the borg
189 # and the visual effects (like missiles shooting, explosions). If using the
190 # screensaver, you will need to load angband.exe load the savefile, make the
191 # modifications, then save and exit. Another way to slow the borg down is
192 # to add more term windows. The more it has to do, the slower it will be.
193 # I recommend using Inventory, Equipment, Messages, Monster Recall, Borg
194 # Status windows. Then you can really see what the borg is up to. Lastly,
195 # to slow the borg down use the following variable. The formula is:
196 # base_game_delay_factor^2 + borg_delay_factor^2.
197
198 borg_delay_factor = 0
199
200
201 # Money Scumming
202
203 # This started as more of a joke but it does have a useful purpose. If you
204 # find yourself shopping in the BM and you really want that item and its just
205 # out of your price range, then you can set a dollar amount into this variable
206 # and the borg will run around town killing monsters and collecting items for
207 # cash. Once he has reached his monetary goal, it will unhook and stop moving.
208 # The borg will wait on the level, to build up more towns people, kill them,
209 # buy food when it needs to. But it won't leave the level until the goal
210 # is reached. To disengage the money scum, leave this variable at 0 (zero).
211 # This will also simulate the borg_worships_gold and allow the borg to sell
212 # non-ID'd items which will be dropped in town. The borg will flee from town
213 # from Scary Guys. So keep this in mind with borgs under clevel 6. The borg
214 # will not scum unless he has a perma light source (phial, or some glowing
215 # artifact). The borg will stop if the General Store runs out of food to buy.
216 # It is not recommended for borgs with Regeneration and no Slow
217 # Digestion, since they will spend all their money on food. But if you have a
218 # borg with Satisfy Hunger spell, they can stay in town forever.
219 # NOTE: if a human wants the borg to scum to a particular amount, turn the
220 # borg_self_scum to FALSE or else he will buy his own gear with that money.
221
222 borg_money_scum_amount = 0
223
224
225 # Borg Scumming
226
227 # This is a companion to the Money Scum above. The borg will scum town if
228 # a stat potion is in the BM. If the borg finds an item in town that he would
229 # really like to have, then he will stay in town until he can gathered enough
230 # money to buy it. The borg will behave like the borg_money_scum_amount above.
231 # If this is TRUE, then the borg is allowed to scum for items that he wants.
232 # To forbid this behavior (which can take a very long time) set it FALSE.
233 # NOTE: if a human wants the borg to scum to a particular amount, turn the
234 # borg_self_scum to FALSE or else he will buy his own gear with that money.
235 # Also, the borg must be at least clevel 10, with a perma light,
236 # a 65% chance to avoid the pick pocket, and lots of food.
237
238 borg_self_scum = TRUE
239
240
241 # Lunal Borg
242
243 # The borg will dive deep in the dungeon, even while he is still
244 # low level, bouncing between levels to take nearby down stairs.
245 # Once deep, he will gather items, then recall to town. He will not recall
246 # back down into the dungeon, but walk all the way down again. If you want
247 # a fast win, this is not the option for you. If you want the borg to have
248 # maxed stats early on at the expense of game turns, then give this a try.
249 # The best way to use this is to have a borg that can cast Satisfy Hunger.
250 # This is a one way trip for the borg and he will be getting hungry.
251 # The borg should also have a perma light source (like the phial). Again,
252 # one way trip. He won't be stopping to restock his fuel source. However,
253 # if he has food or fuel, he will use them when appropriate. Having extra
254 # speed will help the borg too. Often he will come down the stairs, and
255 # find himself right next to a monster. Sometimes, that monster can get
256 # the first hit on a borg, killing him instantly. Even +3 speed would help
257 # to avoid this type of instadeath.
258 #
259 # Self Lunal Mode will allow the borg to use the stair scumming in order to
260 # dive deep in the dungeon for his own goals. For example, if the borg has
261 # been down to depth 99, and now has no more potions of healing, he will
262 # only be prepared for depth 45. He will remain shallow in the dungeon,
263 # from depth 1-10 waiting for the shops to cycle. Then he will attempt to
264 # buy a healing potion from the town shops. If none is available, he will
265 # return to the shallow dungeon depths and wait for the shops to cycle. He
266 # will repeat this pattern until he gets a potion of healing. If the borg
267 # is allowed to self-lunal, then it will bounce the stairs down to a depth
268 # where it feels comfortable. In the case above, it will do this until
269 # about depth 40.
270
271 borg_lunal_mode = FALSE
272 borg_self_lunal = FALSE
273
274
275 # Borg Verbose
276
277 # Verbose is default off. It makes the borg give more reports on his actions
278 # and thoughts. He still gives reports when verbose is FALSE, but when TRUE,
279 # he really chats up a storm.
280
281 borg_verbose = FALSE
282
283
284
285 # Munchkin Start
286
287 # Munchink start will have the borg stair-scum at depth 5-6, looking for items
288 # which he will then sell in town. He will continue this process until about
289 # clevel 6 or 7. The advantage is a sizable boost to his early income and
290 # he can find some wands early on to assist with monster killing.
291
292 borg_munchkin_start = FALSE
293 borg_munchkin_level = 12
294 borg_munchkin_depth = 16
295
296 # Enchant Limit
297
298 # The borg knows how to enchant his equipment using scrolls and spells.
299 # For ammo, he will stop enchanting about +10 or so. If he has access
300 # to the *enchant* spell, he can go up to +15. But the borg will spend
301 # a lot of time casting and resting in order to get his item up to +15.
302 # The borg has plenty of time, to waste doing this. If you want a fast
303 # win, then choose a lower number like +11.
304
305 borg_enchant_limit = 12
306
307
308 # WARNING: If you mess with the objects.txt or the monster.txt and change
309 # the locations of things, then you must make those changes in borg.txt
310 # as well as in this borg code. The borg is very concerned about item
311 # index locations. ie: borgs_has[242] is looking for a Potion of Healing.
312 # The borg is concerned over several items, broken swords, and several
313 # monster locations (Tarresque, Sauron, Morgoth).
314
315
316
317 # CHANGE THIS AT YOUR OWN RISK. Changes here can cause VERY STUPID borg
318 # behaviour. If you do change them and your borg acts goofy, do not email me
319 # complaining that your borg keeps dying. Change these values if you know
320 # exactly what you are doing. It is strongly recommended that you keep a
321 # backup copy of a borg.txt.
322
323 # requirements
324
325 # format of line
326 # REQ_CLASSaaa_DEPTHbbb_(special value)
327
328 # NOTE: CLASS999 = all classes
329 # NOTE: CLASS000 = Warrior
330 # NOTE: CLASS001 = Mage
331 # NOTE: CLASS002 = Priests
332 # NOTE: CLASS003 = Rogue
333 # NOTE: CLASS004 = Ranger
334 # NOTE: CLASS005 = Paladin
335 # NOTE: it is possible to do stupid/impossible things, like require the borg
336 # to have 3 Ringils or carry 999 potions of healing to get to level 1.
337 # there are no checks against such stupidity.
338 # special values are:
339 # _ITEMxxx = xxx is the index in k_info- Item in inventory
340 # _WITEMxxx = xxx is the index in k_info- Item being worn
341 # _ARTIFACTxxx = xxx is the index in a_info- Artifact being worn
342 # _FORMULAxxx = formula found on seperate line
343 # the rest do not require numbers.
344 # Too add this to this list, add to array in borg1.c, add to enum in borg1.h
345 # (those must always match) then make sure the value is set in borg4.c borg_notice()
346 # -personal attributes
347 # _STR (0-39. 3 = 0, 15 = 18/00-18/09, 39 = 18/220)
348 # _INT
349 # _WIS
350 # _DEX
351 # _CON
352 # _CHR
353 # _CSTR (3-238+, 18/09 = 27)
354 # _CINT
355 # _CWIS
356 # _CDEX
357 # _CCON
358 # _CCHR
359 # Sustain Stat:
360 # _SSTR
361 # _SINT
362 # _SWIS
363 # _SDEX
364 # _SCON
365 # _SCHR
366 #
367 # _LIGHT = Has Lite
368 # _CURHP = Current HP
369 # _MAXHP = Max HP
370 # _OLDCHP = HP last round
371 # _CURSP = Current Mana
372 # _MAXSP = max Mana
373 # _ADJSP = mana adj due to Int/Wis
374 # _OLDCSP = SP last round
375 # _SFAIL1 = fail rate from array1
376 # _SFAIL2 = min fail rate
377 # _CLEVEL = cur char level
378 # _MAXCLEVEL = Max char level
379 # _ESP = has telepathy
380 # _CURLITE = Lite Radius
381 # _RECALL = number of 'Recall's
382 # _FOOD = number of foods
383 # _SPEED = base speed (110 = normal speed)
384 # _SDIG = Slow Digest
385 # _FEATH = feather fall
386 # _REG = regen
387 # _SINV = See invis
388 # _INFRA = Infravision
389 # _DIS = Base Disarm
390 # _DEV = Base device use
391 # _SAV = Base Saving throw
392 # _STL = Stealth
393 # _SRCH = Search
394 # _SERCHFREQ = Search Frequency
395 # _THN = To hit (normal)
396 # _THB = To hit (shooting)
397 # _THT = To hit (throwing)
398 # _DIG = Digging
399 # Ignores/Immune
400 # _IFIRE
401 # _IACID
402 # _ICOLD
403 # _IELEC
404 # Resists
405 # _RFIRE
406 # _RCOLD
407 # _RELEC
408 # _RACID
409 # _RPOIS
410 # _RFEAR
411 # _RLITE
412 # _RDARK
413 # _RBLIND
414 # _RCONF
415 # _RSND
416 # _RSHRD
417 # _RNXUS
418 # _RNTHR
419 # _RKAOS
420 # _RDIS
421 # _HLIFE = Hold Life
422 # _FRACT = Free Action
423 # same as without S but includes swap
424 # _SRFIRE
425 # _SRCOLD
426 # _SRELEC
427 # _SRACID
428 # _SRPOIS
429 # _SRFEAR
430 # _SRLITE
431 # _SRDARK
432 # _SRBLIND
433 # _SRCONF
434 # _SRSND
435 # _SRSHRD
436 # _SRNXUS
437 # _SRNTHR
438 # _SRKAOS
439 # _SRDIS
440 # _SHLIFE
441 # _SFRACT
442 # _DEPTH = current depth being tested or Max Depth (for power)
443 # _CDEPTH = current depth borg is on
444 # when the borg is testing, he might see if he is ready for depth 10 while he is on
445 # depth 9
446 # _MAXDEPTH = recall depth
447 # _KING = ***WINNER***
448 # Player Status
449 # _ISWEAK
450 # _ISHUNGRY
451 # _ISFULL
452 # _ISGORGED
453 # _ISBLIND
454 # _ISAFRAID
455 # _ISCONFUSED
456 # _ISPOISONED
457 # _ISCUT
458 # _ISSTUN
459 # _ISHEAVYSTUN
460 # _ISIMAGE
461 # _ISSTUDY
462 # _ISSEARCHING
463 # _ISFIXLEV
464 # _ISFIXEXP
465 # _ISFIXSTR
466 # _ISFIXINT
467 # _ISFIXWIS
468 # _ISFIXDEX
469 # _ISFIXCON
470 # _ISFIXCHR
471 # _ISFIXALL
472
473 # _ARMOR = base AC
474 # _TOHIT = base to hit, does not include weapon
475 # _TODAM = base to damage, does not include weapon
476 # _WTOHIT = weapon to hit
477 # _WTODAM = weapon to damage
478 # _BTOHIT = bow to hit
479 # _BTODAM = bow to damage
480 # _BLOWS = # attacks with current weapon
481 # _SHOTS = # shots with current bow
482 # _WMAXDAM = max damage per round with weapon (normal blow)
483 # Assumes you can enchant to +8 if you are level 25+
484 # _WBASEDAM = base damage per round with weapon (normal blow)
485 # Assumes you no bonuses for to hit
486 # _BMAXDAM = max damage per round with bow (normal hit)
487 # Assumes you can enchant to +8 if you are level 25+
488 # _HEAVYWEPON = Weapon is 'heavy'
489 # _HEAVYBOW = bow is 'heavy'
490 # _CRSTELE = random teleport
491 # _CRSAGRV = Aggrevate
492 # weapon attributes
493 # WS = slays
494 # _WSANIMAL
495 # _WSEVIL
496 # _WSUNDEAD
497 # _WSDEMON
498 # _WSORC
499 # _WSTROLL
500 # _WSGIANT
501 # _WSDRAGON
502 # WK = Weapon Kills
503 # _WKDRAGON
504 # _WKDEMON
505 # _WKUNDEAD
506 # _WIMPACT
507 # WB = Weapon Branded With
508 # _WBACID
509 # _WBELEC
510 # _WBFIRE
511 # _WBCOLD
512 # _WBPOIS
513 # inventory amounts
514 # _ATELEPORT
515 # _AESCAPE
516 # _FUEL
517 # _HEAL
518 # _EZHEAL
519 # _ID
520 # _ASPEED
521 # STF = Staff
522 # _ASTFMAGI Amount Staff Charges
523 # _ASTFDEST
524 # _AMISSILES only ones for your current bow count
525 # _ACUREPOIS
526 # _ADETTRAP
527 # _ADETDOOR
528 # _ADETEVIL
529 # _AMAGICMAP
530 # _ALITE
531 # _ARECHARGE
532 # _APFE = Protection from Evil
533 # _AGLYPH = Rune Protection
534 # _ACCW = CCW potions
535 # _ACSW = CSW potions (+ CLW if cut)
536 # _ARESHEAT = Resist Heat potion
537 # _ARESCOLD = Resist Cold potion
538 # _ATELEPORTLVL = Scroll of Teleport Level
539 # _HWORD = Holy Word spell is legal
540 # _DINV = See Inv spell is legal
541
542 # Formulas are in (ew) reverse polish notation.
543 # Here is a copy of the formulas as defaults.
544 # If you alter yours and mess them up, look here
545 # to return them to the normal value.
546 #FORMULA000=_CLEVEL 30 >= _ACCW _ACSW + 2 >= ||
547 #FORMULA001=_CLEVEL 30 >= _ACCW _ACSW + 3 >= ||
548 #FORMULA002=_ATELEPORT _AESCAPE + 2 >=
549 #FORMULA003=_CLEVEL _DEPTH 4 - >= _CLEVEL 19 >= ||
550 #FORMULA004=_CLEVEL _DEPTH 5 + >= _CLEVEL 19 >= ||
551 #FORMULA005=_CLEVEL _DEPTH >= _CLEVEL 19 >= ||
552 #FORMULA006=_CLEVEL 30 >= _ACCW 5 >= ||
553 #FORMULA007=_ESP _SINV || _DINV ||
554 #FORMULA008=_RCOLD _RELEC + _RACID + 1 >=
555 #FORMULA009=_CLEVEL _DEPTH 5 + >= _CLEVEL 38 > ||
556 #FORMULA010=_CLEVEL _DEPTH 8 + >= _CLEVEL 38 > ||
557 #FORMULA011=_CLEVEL 38 - 2 * 30 + _DEPTH >= _CLEVEL 45 > ||
558 #FORMULA012=_CLEVEL _DEPTH 10 - >= _CLEVEL 43 > ||
559 #FORMULA013=_CLEVEL _DEPTH 13 - >= _CLEVEL 46 > ||
560 #FORMULA014=_CLEVEL _DEPTH 8 - >= _CLEVEL 41 > ||
561 #FORMULA015=_CLEVEL _DEPTH 7 - >= _CLEVEL 40 > ||
562 #FORMULA016=_ATELEPORT _AESCAPE + 6 >=
563 #FORMULA017=_CLEVEL 30 >= _ACCW _ACSW + 10 >= ||
564 #FORMULA018=_SHLIFE _CLEVEL 50 = ||
565 #FORMULA019=_HEAL _EZHEAL ||
566 #FORMULA020=_HEAL 1 > _EZHEAL ||
567 #FORMULA021=_WMAXDAM 20 * _BLOWS 1 + *
568 # see also formulas 81+
569 #FORMULA022=_WBASEDAM _BLOWS * 1 * _WSANIMAL *
570 #FORMULA023=_WBASEDAM _BLOWS * 140 * _WSEVIL *
571 #FORMULA024=_WBASEDAM _BLOWS * 150 * _WSUNDEAD * _WKUNDEAD ! *
572 #FORMULA025=_WBASEDAM _BLOWS * 90 * _WSDEMON * _WKDEMON ! *
573 #FORMULA026=_WBASEDAM _BLOWS * 20 * _WSORC *
574 #FORMULA027=_WBASEDAM _BLOWS * 45 * _WSTROLL *
575 #FORMULA028=_WBASEDAM _BLOWS * 180 * _WSDRAGON * _WKDRAGON ! *
576 #FORMULA029=_WBASEDAM _BLOWS * 120 * _WSGIANT *
577 #FORMULA030=_WBASEDAM _BLOWS * 130 * _WBACID *
578 #FORMULA031=_WBASEDAM _BLOWS * 150 * _WBELEC *
579 #FORMULA032=_WBASEDAM _BLOWS * 90 * _WBFIRE *
580 #FORMULA033=_WBASEDAM _BLOWS * 90 * _WBCOLD *
581 #FORMULA034=_WBASEDAM _BLOWS * 250 * _WKDRAGON *
582 # See formulas 81+
583 #CND035=_STR 9 <
584 #FORMULA036=_SPEED 110 < _SPEED 114 > || _SPEED 110 - * 2500 *
585 #CND037=_MAXHP 500 >
586 #FORMULA038=_MAXHP 500 - 100 *
587 #CND039=_CLEVEL 25 <
588 #CND040=_ESP !
589 #FORMULA041=_CLEVEL 50 == _HLIFE && 200 * _CLEVEL 50 != _HLIFE && 2000 * +
590 #FORMULA042=_RCOLD _RFIRE && _RACID && _RELEC && 10000 *
591 #FORMULA043=_SSTR _SINT && _SWIS && _SCON && _SDEX && 1000 *
592 #FORMULA044=_SINV _ESP || 100000 *
593 #CND045=_CLEVEL 50 !=
594 #CND046=_ARMOR 15 <
595 #CND047=_ARMOR 15 >= _ARMOR 75 < &&
596 #CND048=_ARMOR 75 >=
597 #FORMULA049=_RCOLD _RFIRE && _RACID && _RELEC && 100000 *
598 #CND050=_CDEPTH 90 >
599 #CND051=_REG 1 >=
600 #CND052=_ITEM419 0 ==
601 #CND056=_CLEVEL 1 ==
602 #CND057=_MAXSP 100 >
603 #CND058=_STR 15 >
604 #CND059 _IFIRE !
605 #CND060 _ICOLD !
606 #FORMULA061= _AHWORD 1000 >=
607 #CND062=_RCONF ! _CLEVEL 35 < ||
608 #CND063=_RCONF !
609 #FORMULA064=_ADJSP 35000 *
610 #CND065=_RBLIND !
611 #FORMULA066=_ADJSP 35000 *
612 #CND067=_RPOIS !
613 #FORMULA068=_WBASEDAM _BLOWS * 90 * _WBPOIS *
614 #
615 #FORMULA071=_ITEM324 _ITEM327 + 3 < _ITEM324 _ITEM327 + * 500 *
616 #FORMULA072=_ITEM324 _ITEM327 + 3 >= 3 * 500 *
617 #FORMULA073=_CDEPTH ! _CURHP 60 >= ||
618 #FORMULA074=_CDEPTH ! _CURHP 80 >= ||
619 #FORMULA075=_CDEPTH ! _CLEVEL 6 >= ||
620 #FORMULA076=_CDEPTH ! _CLEVEL 15 >= ||
621 #FORMULA077=_CDEPTH ! _CLEVEL 10 >= ||
622
623 #CND080=_STR 7 >
624 #
625 #Also see formulas 22-34
626 #FORMULA081=_WBASEDAM _BLOWS * 40 * _WSORC * _WSEVIL ! *
627 #FORMULA082=_WBASEDAM _BLOWS * 45 * _WSTROLL * _WSEVIL ! *
628 #FORMULA083=_WBASEDAM _BLOWS * 20 * _WSANIMAL * _WBELEC ! *
629 #FORMULA085=_WBASEDAM _BLOWS * 175 * _WKUNDEAD *
630 #FORMULA086=_WBASEDAM _BLOWS * 150 * _WKDEMON *
631 #CND087= _CLEVEL 10 <=
632 #FORMULA088= _FUEL 5 >= _LIGHT 1 >= ||
633 #
634 #(heal + ez_heal > 30) && (ez_heal > 20)
635 #FORMULA111=_ITEM242 _EZHEAL + 30 > _EZHEAL 20 >= &&
636
637 # things marked depth 99 and greater are ignored if Morgoth is dead
638 REQ_CLASS999_DEPTH001_CURLITE=1
639 REQ_CLASS999_DEPTH001_FOOD=5
640 REQ_CLASS999_DEPTH002_FORMULA088
641 REQ_CLASS999_DEPTH002_RECALL=1
642 REQ_CLASS999_DEPTH002_CURHP=30
643 REQ_CLASS000_DEPTH003_CURHP=50
644 REQ_CLASS000_DEPTH003_CLEVEL=4
645 REQ_CLASS001_DEPTH003_CURHP=60
646 REQ_CLASS001_DEPTH003_CLEVEL=11
647 REQ_CLASS002_DEPTH003_CURHP=50
648 REQ_CLASS002_DEPTH003_CLEVEL=9
649 REQ_CLASS003_DEPTH003_CURHP=50
650 REQ_CLASS003_DEPTH003_CLEVEL=8
651 REQ_CLASS004_DEPTH003_CURHP=50
652 REQ_CLASS004_DEPTH003_CLEVEL=4
653 REQ_CLASS005_DEPTH003_CURHP=50
654 REQ_CLASS005_DEPTH003_CLEVEL=4
655 REQ_CLASS999_DEPTH003_FORMULA000
656
657 # this isn't quite what the original code did but no matter, it is commmented
658 # out in the original code.
659 # REQ_CLASS999_DEPTH003_ID=2
660 REQ_CLASS000_DEPTH005_FORMULA073
661 REQ_CLASS000_DEPTH005_FORMULA075
662 REQ_CLASS001_DEPTH005_FORMULA074
663 REQ_CLASS001_DEPTH005_FORMULA076
664 REQ_CLASS002_DEPTH005_FORMULA073
665 REQ_CLASS002_DEPTH005_FORMULA076
666 REQ_CLASS003_DEPTH005_FORMULA073
667 REQ_CLASS003_DEPTH005_FORMULA077
668 REQ_CLASS004_DEPTH005_FORMULA073
669 REQ_CLASS004_DEPTH005_FORMULA075
670 REQ_CLASS005_DEPTH005_FORMULA073
671 REQ_CLASS005_DEPTH005_FORMULA075
672
673 # this isn't quite what the original code did but no matter, it is commmented
674 # out in the original code.
675 # REQ_CLASS999_DEPTH005_ID=5
676 REQ_CLASS999_DEPTH005_RECALL=2
677 REQ_CLASS999_DEPTH010_CURLITE=2
678 REQ_CLASS999_DEPTH010_FORMULA001
679 REQ_CLASS999_DEPTH010_FORMULA002
680 REQ_CLASS000_DEPTH011_FORMULA003
681 REQ_CLASS001_DEPTH011_FORMULA004
682 REQ_CLASS002_DEPTH011_FORMULA005
683 REQ_CLASS003_DEPTH011_FORMULA005
684 REQ_CLASS004_DEPTH011_FORMULA005
685 REQ_CLASS005_DEPTH011_FORMULA005
686 # REQ_CLASS999_DEPTH010_ID=10
687 REQ_CLASS999_DEPTH010_FORMULA007
688
689 REQ_CLASS999_DEPTH020_FORMULA006
690 REQ_CLASS999_DEPTH020_FRACT=1
691
692 REQ_CLASS999_DEPTH021_SRFIRE=1
693 REQ_CLASS999_DEPTH021_FORMULA008
694 REQ_CLASS999_DEPTH021_CSTR=7
695 REQ_CLASS999_DEPTH021_CDEX=7
696 REQ_CLASS999_DEPTH021_CCON=7
697 REQ_CLASS001_DEPTH021_CINT=7
698 REQ_CLASS003_DEPTH021_CINT=7
699 REQ_CLASS004_DEPTH021_CINT=7
700 REQ_CLASS002_DEPTH021_CWIS=7
701 REQ_CLASS005_DEPTH021_CWIS=7
702 REQ_CLASS000_DEPTH021_FORMULA009
703 REQ_CLASS001_DEPTH021_FORMULA010
704 REQ_CLASS001_DEPTH033_FORMULA011
705 REQ_CLASS003_DEPTH021_FORMULA012
706 REQ_CLASS002_DEPTH021_FORMULA013
707 REQ_CLASS004_DEPTH021_FORMULA014
708 REQ_CLASS005_DEPTH021_FORMULA015
709 REQ_CLASS999_DEPTH026_FORMULA016
710 REQ_CLASS999_DEPTH026_FORMULA017
711 REQ_CLASS999_DEPTH030_ATELEPORT=1
712 REQ_CLASS999_DEPTH030_SRCOLD=1
713 REQ_CLASS999_DEPTH030_SRACID=1
714 REQ_CLASS999_DEPTH030_SRELEC=1
715 REQ_CLASS999_DEPTH034_CLEVEL=40
716 REQ_CLASS999_DEPTH035_SRPOIS=1
717 REQ_CLASS999_DEPTH040_CSTR=16
718 REQ_CLASS999_DEPTH040_CDEX=16
719 REQ_CLASS999_DEPTH040_CCON=16
720 REQ_CLASS001_DEPTH040_CINT=16
721 REQ_CLASS003_DEPTH040_CINT=16
722 REQ_CLASS004_DEPTH040_CINT=16
723 REQ_CLASS002_DEPTH040_CWIS=16
724 REQ_CLASS005_DEPTH040_CWIS=16
725 REQ_CLASS999_DEPTH046_SPEED=115
726 REQ_CLASS999_DEPTH046_RCONF=1
727 REQ_CLASS999_DEPTH046_CURHP=500
728 REQ_CLASS999_DEPTH046_CSTR=58
729 REQ_CLASS999_DEPTH046_CDEX=68
730 REQ_CLASS001_DEPTH046_CINT=118
731 REQ_CLASS003_DEPTH046_CINT=115
732 REQ_CLASS004_DEPTH046_CINT=115
733 REQ_CLASS002_DEPTH046_CWIS=118
734 REQ_CLASS005_DEPTH046_CWIS=115
735 REQ_CLASS999_DEPTH046_FORMULA018
736 REQ_CLASS999_DEPTH046_FORMULA019
737 REQ_CLASS999_DEPTH056_FORMULA020
738 REQ_CLASS999_DEPTH056_SRBLIND=1
739 #REQ_CLASS999_DEPTH056_SRNTHR=1
740 REQ_CLASS999_DEPTH056_ESP=1
741 REQ_CLASS999_DEPTH060_SPEED=120
742 REQ_CLASS999_DEPTH060_SRKAOS=1
743 REQ_CLASS999_DEPTH060_SRDIS=1
744 REQ_CLASS999_DEPTH081_SPEED=130
745 # p of restore Mana
746 REQ_CLASS001_DEPTH100_ITEM266=10
747 REQ_CLASS002_DEPTH100_ITEM266=10
748 REQ_CLASS003_DEPTH100_ITEM266=10
749 REQ_CLASS004_DEPTH100_ITEM266=10
750 REQ_CLASS005_DEPTH100_ITEM266=10
751 # p of Healing
752 REQ_CLASS999_DEPTH100_FORMULA111
753 # (heal + ez_heal > 30) && (ez_heal > 20)
754 FORMULA111=_ITEM242 _EZHEAL + 30 > _EZHEAL 20 >= &&
755 REQ_CLASS999_DEPTH100_EZHEAL=15
756 # p of speed
757 REQ_CLASS999_DEPTH100_ASPEED=10
758 #REQ_CLASS999_DEPTH101_KING=1
759
760 # Formulas are in (ew) reverse polish notation.
761 # Sorry, it was easiest to process.
762 # I will comment translations above the formulas for
763 # people who are not reverse polish.
764 # ((max_level >= 30) || ((ccw+csw) >= 2))
765 FORMULA000=_CLEVEL 30 >= _ACCW _ACSW + 2 >= ||
766 # ((max_level >= 30) || ((ccw+csw) >= 3))
767 FORMULA001=_CLEVEL 30 >= _ACCW _ACSW + 3 >= ||
768 # amt_teleport + amt_escape >= 2
769 FORMULA002=_ATELEPORT _AESCAPE + 2 >=
770 # max_level >= depth - 4 || clevel >= 19
771 FORMULA003=_CLEVEL _DEPTH 4 - >= _CLEVEL 19 >= ||
772 # max_level >= depth + 5 || clevel >= 19
773 FORMULA004=_CLEVEL _DEPTH 5 + >= _CLEVEL 19 >= ||
774 # max_level >= depth || clevel >= 19
775 FORMULA005=_CLEVEL _DEPTH >= _CLEVEL 19 >= ||
776 # ((max_level >= 30) || (CCW >= 5))
777 FORMULA006=_CLEVEL 30 >= _ACCW 5 >= ||
778 # see invis or telepathy
779 FORMULA007=_ESP _SINV || _DINV ||
780 # one resist (other than fire)
781 FORMULA008=_RCOLD _RELEC + _RACID + 1 >=
782 # max_level >= depth + 5 || max_level > 38
783 FORMULA009=_CLEVEL _DEPTH 5 + >= _CLEVEL 38 > ||
784 # max_level >= depth + 8 || max_level > 38
785 FORMULA010=_CLEVEL _DEPTH 8 + >= _CLEVEL 38 > ||
786 # (max_level-38)*2+30 <= dlevel (or clevel > 45)
787 FORMULA011=_CLEVEL 38 - 2 * 30 + _DEPTH >= _CLEVEL 45 > ||
788 # max_level >= depth - 10 || max_level > 43
789 FORMULA012=_CLEVEL _DEPTH 10 - >= _CLEVEL 43 > ||
790 # max_level >= depth - 13 || max_level > 46
791 FORMULA013=_CLEVEL _DEPTH 13 - >= _CLEVEL 46 > ||
792 # max_level >= depth - 8 || max_level >= 41
793 FORMULA014=_CLEVEL _DEPTH 8 - >= _CLEVEL 41 > ||
794 # max_level >= depth - 7 || max_level >= 40
795 FORMULA015=_CLEVEL _DEPTH 7 - >= _CLEVEL 40 > ||
796
797 # amt_teleport + amt_escape >= 6
798 FORMULA016=_ATELEPORT _AESCAPE + 6 >=
799
800 # ((max_level >= 30) || ((ccw+csw) >= 10))
801 FORMULA017=_CLEVEL 30 >= _ACCW _ACSW + 10 >= ||
802
803 # if below level 50, must have hold life
804 FORMULA018=_SHLIFE _CLEVEL 50 = ||
805
806 # have some heal or ez heal
807 FORMULA019=_HEAL _EZHEAL ||
808
809 # have 2 heal or 1 ez heal
810 FORMULA020=_HEAL 1 > _EZHEAL ||
811
812 # Priests have Holy Word
813 CND061= _AHWORD 1000 >=
814
815 # HP must be more than x unless we are checking from town (_CDEPTH 0)
816 FORMULA073=_CDEPTH ! _CURHP 60 >= ||
817 FORMULA074=_CDEPTH ! _CURHP 80 >= ||
818 # player level must be more than x0 unless we are checking from town (_CDEPTH 0)
819 FORMULA075=_CDEPTH ! _CLEVEL 6 >= ||
820 FORMULA076=_CDEPTH ! _CLEVEL 15 >= ||
821 FORMULA077=_CDEPTH ! _CLEVEL 10 >= ||
822
823 #BI_FUEL >= 5 || BI_LIGHT >= 1
824 FORMULA088= _FUEL 5 >= _LIGHT 1 >= ||
825
826 # Power calculations
827
828 # CHANGE THIS AT YOUR OWN RISK. Changes here can cause VERY STUPID borg
829 # behavior.
830
831 # Stuff left in code: 1) heavy armor gives a sliding loss of power
832 # 2) bad gloves on a mage, -275K
833 # 3) bad weapon on a priest, -75K
834 # 4) special bonus for one item with RNeth RDisn RChaos = 25K
835 # 5) special bonus for one item with RNeth RDisn = 15K
836 # 6) CSW reward (complex)
837 # 7) low level spell books (complex... need to know what you can cast)
838 # 8) state specific things. This includes, enchant weapon scrolls when
839 # weapon needs enchanting, restore stat potions, cures when injured in town,
840 # and extra food when hungry
841 # 9) weight/encumbrance penalty (too complex)
842 # 10) reward for empty slots (to avoid carrying worthless junk) 4K/slot
843 #
844
845 # POWER_CLASSxxx_DEPTHxxx_CNDxxx_RANGExxxTOxxx_(special value)=xxx EACH
846
847 # NOTE: CND is optional. It refers to a _FORMULA line later. The formula will be
848 # evalulated and, if it is 0, the power calc is skipped
849 # NOTE: EACH is optional.
850 # NOTE: with range, only amounts in that range will count.
851 # so if range is RANGE006TO007 and you have 12, you get
852 # 2 * the 'power' with 'each' or nothing if not each
853 # Range is ignored for formulas (gives an error)
854 # NOTE: _RANGE000TO999 is a special case. it means 'no range used'
855
856 # things marked depth 99 and greater are ignored if Morgoth is dead
857
858 # 20 per damage point * (blows + 1)
859 POWER_CLASS999_DEPTH000_RANGE000TO999_FORMULA021
860 FORMULA021=_WMAXDAM 20 * _BLOWS 1 + *
861 POWER_CLASS999_DEPTH000_RANGE000TO999_TOHIT= 750 EACH
862 POWER_CLASS999_DEPTH000_RANGE000TO999_WTOHIT= 750 EACH
863 # slays and such... yikes!
864 POWER_CLASS999_DEPTH000_RANGE000TO999_FORMULA022
865 POWER_CLASS999_DEPTH000_RANGE000TO999_FORMULA083
866 #Brands rewarded if Kill Brand not there.
867 #SAnimal is rewarded only if weapon is not electric brand.
868 FORMULA022=_WBASEDAM _BLOWS * 1 * _WSANIMAL *
869 FORMULA083=_WBASEDAM _BLOWS * 20 * _WSANIMAL * _WBELEC ! *
870 POWER_CLASS999_DEPTH000_RANGE000TO999_FORMULA023
871 FORMULA023=_WBASEDAM _BLOWS * 140 * _WSEVIL *
872 POWER_CLASS999_DEPTH000_RANGE000TO999_FORMULA024
873 FORMULA024=_WBASEDAM _BLOWS * 150 * _WSUNDEAD * _WKUNDEAD ! *
874 POWER_CLASS999_DEPTH000_RANGE000TO999_FORMULA025
875 FORMULA025=_WBASEDAM _BLOWS * 90 * _WSDEMON * _WKDEMON ! *
876 #SOrc is rewarded more if slay evil is not possesed
877 POWER_CLASS999_DEPTH000_RANGE000TO999_FORMULA026
878 POWER_CLASS999_DEPTH000_RANGE000TO999_FORMULA081
879 FORMULA026=_WBASEDAM _BLOWS * 20 * _WSORC *
880 FORMULA081=_WBASEDAM _BLOWS * 20 * _WSORC * _WSEVIL ! *
881 #STroll is rewarded more if slay evil is not possesed
882 POWER_CLASS999_DEPTH000_RANGE000TO999_FORMULA027
883 POWER_CLASS999_DEPTH000_RANGE000TO999_FORMULA082
884 FORMULA027=_WBASEDAM _BLOWS * 45 * _WSTROLL *
885 FORMULA082=_WBASEDAM _BLOWS * 45 * _WSTROLL * _WSEVIL ! *
886 POWER_CLASS999_DEPTH000_RANGE000TO999_FORMULA028
887 FORMULA028=_WBASEDAM _BLOWS * 180 * _WSDRAGON * _WKDRAGON ! *
888 POWER_CLASS999_DEPTH000_RANGE000TO999_FORMULA029
889 FORMULA029=_WBASEDAM _BLOWS * 120 * _WSGIANT *
890 POWER_CLASS999_DEPTH000_RANGE000TO999_FORMULA030
891 FORMULA030=_WBASEDAM _BLOWS * 130 * _WBACID *
892 POWER_CLASS999_DEPTH000_RANGE000TO999_FORMULA031
893 FORMULA031=_WBASEDAM _BLOWS * 150 * _WBELEC *
894 POWER_CLASS999_DEPTH000_RANGE000TO999_FORMULA032
895 FORMULA032=_WBASEDAM _BLOWS * 90 * _WBFIRE *
896 POWER_CLASS999_DEPTH000_RANGE000TO999_FORMULA033
897 FORMULA033=_WBASEDAM _BLOWS * 90 * _WBCOLD *
898 POWER_CLASS999_DEPTH000_RANGE000TO999_FORMULA033
899 FORMULA068=_WBASEDAM _BLOWS * 90 * _WBPOIS *
900 #Kills brands
901 POWER_CLASS999_DEPTH000_RANGE000TO999_FORMULA034
902 FORMULA034=_WBASEDAM _BLOWS * 250 * _WKDRAGON *
903 POWER_CLASS999_DEPTH000_RANGE000TO999_FORMULA085
904 FORMULA085=_WBASEDAM _BLOWS * 175 * _WKUNDEAD *
905 POWER_CLASS999_DEPTH000_RANGE000TO999_FORMULA086
906 FORMULA086=_WBASEDAM _BLOWS * 150 * _WKDEMON *
907
908 POWER_CLASS999_DEPTH000_RANGE000TO999_WIMPACT=5000
909 POWER_CLASS999_DEPTH000_CND080_RANGE000TO999_HEAVYWEPON=-8000
910 CND080=_STR 7 >
911 POWER_CLASS999_DEPTH000_RANGE000TO999_HEAVYBOW=-500000
912
913 # Borg worships num_blow, even on broken swords.
914 # kind 47 is a broken sword usually 1d2 in damage
915 POWER_CLASS999_DEPTH000_RANGE000TO999_WITEM030=-90000
916 POWER_CLASS999_DEPTH000_RANGE000TO999_WITEM047=-90000
917 POWER_CLASS999_DEPTH000_RANGE000TO999_WITEM390=-90000
918
919 # slings force you to carry heavy ammo. Penalty for that unles you have lots of str
920 POWER_CLASS999_DEPTH000_CND035_RANGE000TO999_WITEM077= -5000
921 CND035=_STR 9 <
922
923 #We want the borg to use whips and daggers at first
924 POWER_CLASS999_DEPTH000_CND087_RANGE000TO999_BLOWS= 45000 EACH
925 CND087= _CLEVEL 10 <=
926
927 # bow damage
928 POWER_CLASS999_DEPTH000_RANGE000TO999_BMAXDAM= 9 EACH
929 POWER_CLASS999_DEPTH000_RANGE000TO999_TOHIT= 250 EACH
930 POWER_CLASS999_DEPTH000_RANGE000TO999_BTOHIT= 250 EACH
931 #We want low level dudes to really like ranged weaps
932 POWER_CLASS999_DEPTH000_CND087_RANGE000TO999_BMAXDAM= 300 EACH
933 POWER_CLASS999_DEPTH000_CND087_RANGE000TO999_TOHIT= 300 EACH
934 POWER_CLASS999_DEPTH000_CND087_RANGE000TO999_BTOHIT= 300 EACH
935 #We want low level dudes to buy a sling asap
936 POWER_CLASS999_DEPTH000_CND087_RANGE000TO999_WITEM073= 3000
937 POWER_CLASS999_DEPTH000_CND087_RANGE000TO999_WITEM074= 3000
938 POWER_CLASS999_DEPTH000_CND087_RANGE000TO999_WITEM075= 3000
939 POWER_CLASS999_DEPTH000_CND087_RANGE000TO999_WITEM076= 3000
940 POWER_CLASS999_DEPTH000_CND087_RANGE000TO999_WITEM077= 3000
941
942
943 # Rangers perfer bows
944 POWER_CLASS004_DEPTH000_RANGE000TO999_WITEM073= 30000
945 POWER_CLASS004_DEPTH000_RANGE000TO999_WITEM074= 30000
946
947 # Dragon armor liked for the activation. (AJG: I adjusted this slightly)
948 POWER_CLASS999_DEPTH000_RANGE000TO999_WITEM400=1100
949 POWER_CLASS999_DEPTH000_RANGE000TO999_WITEM401=1100
950 POWER_CLASS999_DEPTH000_RANGE000TO999_WITEM402=1100
951 POWER_CLASS999_DEPTH000_RANGE000TO999_WITEM403=1100
952 POWER_CLASS999_DEPTH000_RANGE000TO999_WITEM404=2750
953 POWER_CLASS999_DEPTH000_RANGE000TO999_WITEM405=3250
954 POWER_CLASS999_DEPTH000_RANGE000TO999_WITEM406=5550
955 POWER_CLASS999_DEPTH000_RANGE000TO999_WITEM407=5650
956 POWER_CLASS999_DEPTH000_RANGE000TO999_WITEM408=5750
957 POWER_CLASS999_DEPTH000_RANGE000TO999_WITEM409=5850
958 POWER_CLASS999_DEPTH000_RANGE000TO999_WITEM410=5950
959 POWER_CLASS999_DEPTH000_RANGE000TO999_WITEM411=5975
960 POWER_CLASS999_DEPTH000_RANGE000TO999_WITEM412=5999
961
962 # Light bonuses
963 POWER_CLASS999_DEPTH000_RANGE000TO000_CURLITE=-3000
964 POWER_CLASS999_DEPTH000_RANGE001TO003_CURLITE=500000 EACH
965 POWER_CLASS999_DEPTH000_RANGE003TO099_CURLITE=580000
966 POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT001=8000
967 POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT002=10000
968 POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT003=12000
969
970 # Speed formulas are slightly complex. Note negative for poor speed
971 # 110 is the base speed
972 # (Speed - 110) * 2500
973 POWER_CLASS999_DEPTH000_RANGE000TO999_FORMULA036
974 FORMULA036=_SPEED 110 < _SPEED 114 > || _SPEED 110 - * 2500 *
975 POWER_CLASS999_DEPTH000_RANGE111TO999_SPEED= 1000 EACH
976 POWER_CLASS999_DEPTH000_RANGE110TO114_SPEED= 55000
977 POWER_CLASS999_DEPTH000_RANGE115TO119_SPEED= 75000
978 POWER_CLASS999_DEPTH000_RANGE120TO124_SPEED= 100000
979 POWER_CLASS999_DEPTH000_RANGE125TO129_SPEED= 125000
980 POWER_CLASS999_DEPTH000_RANGE130TO134_SPEED= 140000
981 POWER_CLASS999_DEPTH000_RANGE135TO139_SPEED= 155000
982 POWER_CLASS999_DEPTH000_RANGE140TO144_SPEED= 165000
983 POWER_CLASS999_DEPTH000_RANGE145TO149_SPEED= 170000
984 POWER_CLASS999_DEPTH000_RANGE150TO999_SPEED= 175000
985
986 # stat bonuses
987 POWER_CLASS999_DEPTH000_RANGE000TO999_STR= 100 EACH
988 # note: division of bonus based on class
989 POWER_CLASS001_DEPTH000_RANGE000TO999_INT= 200 EACH
990 POWER_CLASS002_DEPTH000_RANGE000TO999_WIS= 200 EACH
991 POWER_CLASS003_DEPTH000_RANGE000TO999_INT= 200 EACH
992 POWER_CLASS004_DEPTH000_RANGE000TO999_INT= 200 EACH
993 POWER_CLASS005_DEPTH000_RANGE000TO999_WIS= 200 EACH
994 # we can't directly give a bonus for mana or your bonus
995 # would adjust as you cast spells. Instead we give a
996 # bonus for 'mana adjustment' based on stats
997 POWER_CLASS001_DEPTH000_RANGE000TO999_ADJSP= 255 EACH
998 POWER_CLASS002_DEPTH000_RANGE000TO999_ADJSP= 250 EACH
999 POWER_CLASS003_DEPTH000_RANGE000TO999_ADJSP= 155 EACH
1000 POWER_CLASS004_DEPTH000_RANGE000TO999_ADJSP= 155 EACH
1001 POWER_CLASS005_DEPTH000_RANGE000TO999_ADJSP= 150 EACH
1002 # The fail rate is based on the table adj_mag_stat[]
1003 POWER_CLASS001_DEPTH000_RANGE000TO999_SFAIL1= 5010 EACH
1004 POWER_CLASS002_DEPTH000_RANGE000TO999_SFAIL1= 5000 EACH
1005 POWER_CLASS003_DEPTH000_RANGE000TO999_SFAIL1= 3010 EACH
1006 POWER_CLASS004_DEPTH000_RANGE000TO999_SFAIL1= 3010 EACH
1007 POWER_CLASS005_DEPTH000_RANGE000TO999_SFAIL1= 3000 EACH
1008 # This is the 'min fail rate' and it is nice if it is 0
1009 # (note range 0 to 0) (I hope this works)
1010 POWER_CLASS001_DEPTH000_RANGE000TO002_SFAIL2= 70000
1011 POWER_CLASS002_DEPTH000_RANGE000TO002_SFAIL2= 70000
1012 # Priests with Holy Word legal try to maximize WIS
1013 POWER_CLASS002_DEPTH000_CND061_RANGE000TO999_FORMULA064
1014 FORMULA064=_ADJSP 35000 *
1015
1016 POWER_CLASS999_DEPTH000_RANGE000TO999_DEX= 120 EACH
1017 # like spell points, hit points are 'powered' based on your hp bonus
1018 # which is based on your con and adj_con_mhp[]
1019 POWER_CLASS999_DEPTH000_RANGE000TO999_CON= 150 EACH
1020 # first 500 hp's are more important than the next 500
1021 POWER_CLASS999_DEPTH000_RANGE000TO500_MAXHP= 350 EACH
1022 # can't use the range because of the 999 max :-(
1023 POWER_CLASS999_DEPTH000_CND037_RANGE000TO999_FORMULA038
1024 CND037=_MAXHP 500 >
1025 FORMULA038=_MAXHP 500 - 100 *
1026 CND039=_CLEVEL 25 <
1027
1028 # 'minor' skills
1029 #POWER_CLASS999_DEPTH000_RANGE000TO999_DIS= 2 EACH
1030 POWER_CLASS999_DEPTH000_RANGE000TO999_DEV= 25 EACH
1031 POWER_CLASS999_DEPTH000_RANGE000TO999_SAV= 25 EACH
1032 POWER_CLASS999_DEPTH000_RANGE100TO999_SAV= 10000
1033 POWER_CLASS999_DEPTH000_RANGE000TO999_STL= 2 EACH
1034 #POWER_CLASS999_DEPTH000_RANGE000TO999_SRCH= 1 EACH
1035 #POWER_CLASS999_DEPTH000_RANGE000TO999_SERCHFREQ= 1 EACH
1036 POWER_CLASS999_DEPTH000_RANGE000TO999_THN= 5 EACH
1037 POWER_CLASS999_DEPTH000_RANGE000TO999_THB= 35 EACH
1038 POWER_CLASS999_DEPTH000_RANGE000TO999_THT= 2 EACH
1039 POWER_CLASS999_DEPTH000_RANGE000TO999_DIG= 2 EACH
1040
1041 # other powers
1042 POWER_CLASS999_DEPTH000_RANGE000TO999_SDIG= 750
1043
1044 # note: after depth 20 you only get 50 for Feather fall (500-450)
1045 POWER_CLASS999_DEPTH000_RANGE000TO999_FEATH= 500
1046 POWER_CLASS999_DEPTH020_RANGE000TO999_FEATH= -450
1047 POWER_CLASS999_DEPTH000_RANGE000TO999_LIGHT= 2000
1048 # 500 for ESP & See inv, 5000 for just see inv (ESP is rewarded later)
1049 POWER_CLASS999_DEPTH000_RANGE000TO999_SINV= 500
1050 POWER_CLASS999_DEPTH000_CND040_RANGE000TO999_SINV= 4500
1051 CND040=_ESP !
1052 POWER_CLASS999_DEPTH000_RANGE000TO999_FRACT= 10000
1053 # only 200 pts for Hold Life if you have maxed out your level
1054 POWER_CLASS999_DEPTH000_RANGE000TO999_FORMULA041
1055 FORMULA041=_CLEVEL 50 == _HLIFE && 200 * _CLEVEL 50 != _HLIFE && 2000 * +
1056 POWER_CLASS999_DEPTH000_RANGE000TO999_REG= 2000
1057 POWER_CLASS999_DEPTH000_RANGE000TO999_ESP= 80000
1058 POWER_CLASS999_DEPTH000_RANGE000TO999_ICOLD= 50000
1059 POWER_CLASS999_DEPTH000_RANGE000TO999_IELEC= 25000
1060 POWER_CLASS999_DEPTH000_RANGE000TO999_IFIRE= 70000
1061 POWER_CLASS999_DEPTH000_RANGE000TO999_IACID= 30000
1062 POWER_CLASS999_DEPTH000_RANGE000TO999_RCOLD= 3000
1063 POWER_CLASS999_DEPTH000_RANGE000TO999_RELEC= 4000
1064 POWER_CLASS999_DEPTH000_RANGE000TO999_RACID= 6000
1065 POWER_CLASS999_DEPTH000_RANGE000TO999_RFIRE= 8000
1066 # special bonus for base 4 resists
1067 POWER_CLASS999_DEPTH000_RANGE000TO999_FORMULA042
1068 FORMULA042=_RCOLD _RFIRE && _RACID && _RELEC && 10000 *
1069 POWER_CLASS999_DEPTH000_RANGE000TO999_RPOIS= 20000
1070 POWER_CLASS999_DEPTH000_RANGE000TO999_RSND= 3500
1071 POWER_CLASS999_DEPTH000_RANGE000TO999_RLITE= 800
1072 POWER_CLASS999_DEPTH000_RANGE000TO999_RDARK= 800
1073 POWER_CLASS999_DEPTH000_RANGE000TO999_RKAOS= 5000
1074 # note, this is especially high because some items (CCW) give
1075 # extra bonuses if you don't have RCONF, so we need to ensure
1076 # you will not do that -instead- of getting RCONF
1077 POWER_CLASS999_DEPTH000_RANGE000TO999_RCONF= 80000
1078 # and a little extra for a mage.
1079 POWER_CLASS001_DEPTH000_RANGE000TO999_RCONF= 2000
1080 POWER_CLASS999_DEPTH000_RANGE000TO999_RDIS= 5000
1081 POWER_CLASS999_DEPTH000_RANGE000TO999_RSHRD= 100
1082 POWER_CLASS999_DEPTH000_RANGE000TO999_RNXUS= 100
1083 POWER_CLASS999_DEPTH000_RANGE000TO999_RBLIND= 5000
1084 POWER_CLASS999_DEPTH000_RANGE000TO999_RNTHR= 5500
1085 POWER_CLASS999_DEPTH000_RANGE000TO999_RFEAR= 2000
1086 # sustains
1087 # note: don't care about SCHR
1088 POWER_CLASS999_DEPTH000_RANGE000TO999_SSTR= 50
1089 POWER_CLASS999_DEPTH000_RANGE000TO999_SINT= 50
1090 POWER_CLASS999_DEPTH000_RANGE000TO999_SWIS= 50
1091 POWER_CLASS999_DEPTH000_RANGE000TO999_SCON= 50
1092 POWER_CLASS999_DEPTH000_RANGE000TO999_SDEX= 50
1093 # special bonus for sustain all
1094 POWER_CLASS999_DEPTH000_RANGE000TO999_FORMULA043
1095 FORMULA043=_SSTR _SINT && _SWIS && _SCON && _SDEX && 1000 *
1096
1097 # special rewards for 'must have' (based on requirements above)
1098 POWER_CLASS999_DEPTH009_RANGE000TO999_FORMULA044
1099 FORMULA044=_SINV _ESP || 100000 *
1100 POWER_CLASS999_DEPTH019_RANGE000TO999_FRACT= 100000
1101 POWER_CLASS999_DEPTH024_RANGE000TO999_RFIRE= 100000
1102 POWER_CLASS999_DEPTH035_RANGE000TO999_RPOIS= 100000
1103 POWER_CLASS999_DEPTH030_RANGE000TO999_RELEC= 100000
1104 POWER_CLASS999_DEPTH030_RANGE000TO999_RACID= 100000
1105 POWER_CLASS999_DEPTH030_RANGE000TO999_RCOLD= 100000
1106 POWER_CLASS999_DEPTH040_RANGE000TO999_RCONF= 100000
1107 POWER_CLASS999_DEPTH045_CND045_RANGE000TO999_HLIFE= 100000
1108 CND045=_CLEVEL 50 !=
1109 POWER_CLASS999_DEPTH045_RANGE115TO999_SPEED= 100000
1110 # note: Resist nether shows up several times... it is important
1111 POWER_CLASS999_DEPTH049_RANGE000TO999_RNTHR= 55000
1112 POWER_CLASS999_DEPTH049_RANGE000TO999_RSND= 100000
1113 POWER_CLASS999_DEPTH054_RANGE000TO999_RBLIND= 100000
1114 POWER_CLASS999_DEPTH054_RANGE000TO999_ESP= 100000
1115 POWER_CLASS999_DEPTH059_RANGE000TO999_RNTHR= 55000
1116 POWER_CLASS999_DEPTH059_RANGE000TO999_RKAOS= 104000
1117 POWER_CLASS999_DEPTH059_RANGE000TO999_RDIS= 90000
1118 # speed above 120 gets a bonus
1119 POWER_CLASS999_DEPTH059_RANGE120TO999_SPEED= 100000
1120 # speed above 130 gets a bonus
1121 POWER_CLASS999_DEPTH079_RANGE130TO999_SPEED= 100000
1122 POWER_CLASS999_DEPTH079_RANGE000TO999_RNTHR= 15000
1123 POWER_CLASS999_DEPTH079_RANGE000TO999_RDARK= 25000
1124 # Warrior's get an extra bonus for speed about 140
1125 POWER_CLASS000_DEPTH079_RANGE140TO999_SPEED= 100000
1126
1127 # AC Bonuses (dependant on level)
1128 POWER_CLASS999_DEPTH000_CND046_RANGE000TO999_ARMOR= 2000 EACH
1129 CND046=_ARMOR 15 <
1130 POWER_CLASS999_DEPTH000_CND047_RANGE000TO999_ARMOR= 500 EACH
1131 CND047=_ARMOR 15 >= _ARMOR 75 < &&
1132 POWER_CLASS999_DEPTH000_CND048_RANGE000TO999_ARMOR= 100 EACH
1133 CND048=_ARMOR 75 >=
1134
1135 # cursed items
1136 POWER_CLASS999_DEPTH000_RANGE000TO999_CRSTELE= -100000
1137 POWER_CLASS000_DEPTH000_RANGE000TO999_CRSAGRV= -80000
1138 POWER_CLASS001_DEPTH000_RANGE000TO999_CRSAGRV= -8000
1139 POWER_CLASS002_DEPTH000_RANGE000TO999_CRSAGRV= -80000
1140 POWER_CLASS003_DEPTH000_RANGE000TO999_CRSAGRV= -80000
1141 POWER_CLASS004_DEPTH000_RANGE000TO999_CRSAGRV= -80000
1142 POWER_CLASS005_DEPTH000_RANGE000TO999_CRSAGRV= -80000
1143
1144 # Depth 99+, assume going after Morgoth.
1145 # note: these are ignored if Morgoth is dead
1146 #POWER_CLASS999_DEPTH099_RANGE000TO999_SSTR= 35000
1147 #POWER_CLASS001_DEPTH099_RANGE000TO999_SINT= 45000
1148 #POWER_CLASS003_DEPTH099_RANGE000TO999_SINT= 45000
1149 #POWER_CLASS004_DEPTH099_RANGE000TO999_SINT= 45000
1150 #POWER_CLASS002_DEPTH099_RANGE000TO999_SWIS= 35000
1151 #POWER_CLASS005_DEPTH099_RANGE000TO999_SWIS= 35000
1152 #POWER_CLASS999_DEPTH099_RANGE000TO999_SCON= 55000
1153 #POWER_CLASS999_DEPTH099_RANGE000TO999_SDEX= 15000
1154 #POWER_CLASS999_DEPTH099_RANGE000TO999_WSEVIL= 15000
1155 #POWER_CLASS999_DEPTH099_RANGE000TO999_RNTHR= 15000
1156 #POWER_CLASS999_DEPTH099_RANGE000TO999_RDIS= 15000
1157 #POWER_CLASS999_DEPTH099_RANGE000TO999_RPOIS= 100000
1158 #Pots of Berserk Str for non Priest/Mage
1159 POWER_CLASS000_DEPTH099_RANGE000TO999_ITEM258= 2000 EACH
1160 POWER_CLASS003_DEPTH099_RANGE000TO999_ITEM258= 2000 EACH
1161 POWER_CLASS004_DEPTH099_RANGE000TO999_ITEM258= 2000 EACH
1162 POWER_CLASS005_DEPTH099_RANGE000TO999_ITEM258= 2000 EACH
1163 # Mass Banishment Scrolls
1164 POWER_CLASS999_DEPTH099_RANGE000TO999_AMASSBAN= 2500 EACH
1165 # Heal Pots
1166 POWER_CLASS005_DEPTH099_RANGE000TO999_ITEM242= 2000 EACH
1167 # Res Mana pots
1168 POWER_CLASS005_DEPTH099_RANGE000TO999_ITEM266= 2000 EACH
1169 #POWER_CLASS999_DEPTH099_RANGE000TO999_FORMULA049
1170 FORMULA049=_RCOLD _RFIRE && _RACID && _RELEC && 100000 *
1171
1172 #POWER_CLASS999_DEPTH099_RANGE000TO999_AGLYPH= 2500 EACH
1173
1174 # artifact activation bonuses
1175 POWER_CLASS000_DEPTH000_RANGE000TO999_ARTIFACT001= 1500
1176 POWER_CLASS001_DEPTH000_RANGE000TO999_ARTIFACT001= 500
1177 POWER_CLASS002_DEPTH000_RANGE000TO999_ARTIFACT001= 500
1178 POWER_CLASS003_DEPTH000_RANGE000TO999_ARTIFACT001= 1000
1179 POWER_CLASS004_DEPTH000_RANGE000TO999_ARTIFACT001= 1000
1180 POWER_CLASS005_DEPTH000_RANGE000TO999_ARTIFACT001= 1000
1181 POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT002= 1200
1182 POWER_CLASS000_DEPTH000_RANGE000TO999_ARTIFACT001= 2000
1183 POWER_CLASS001_DEPTH000_RANGE000TO999_ARTIFACT003= 2000
1184 POWER_CLASS002_DEPTH000_RANGE000TO999_ARTIFACT003= 1500
1185 POWER_CLASS003_DEPTH000_RANGE000TO999_ARTIFACT003= 2000
1186 POWER_CLASS004_DEPTH000_RANGE000TO999_ARTIFACT003= 2000
1187 POWER_CLASS005_DEPTH000_RANGE000TO999_ARTIFACT003= 2000
1188 POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT067= 527
1189 POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT068= 518
1190 POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT069= 524
1191 POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT070= 596
1192 POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT072= 554
1193 POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT082= 700
1194 # NOTE: Don't do this if you are using random artifacts (ringil speed bonus)
1195 # POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT082= 25000
1196 POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT083= 644
1197 POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT093= 620
1198 POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT097= 700
1199 POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT112= 700
1200 POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT115= 644
1201 POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT122= 590
1202 POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT016= 800
1203 POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT053= 507
1204 POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT054= 540
1205 POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT055= 527
1206 POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT056= 518
1207 POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT057= 522
1208 POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT059= 650
1209 # NOTE: Don't do this if you are using random artifacts (Feanor special bonus)
1210 # POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT060= 5000
1211 # Ok so I fudged this one: Dispel Evil (it was a nice formula in the code)
1212 # I took a random average
1213 POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT005= 650
1214 POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT010= 740
1215 POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT011= 900
1216 POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT012= 1000
1217 POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT013= 999999
1218 POWER_CLASS000_DEPTH000_RANGE000TO999_ARTIFACT108= 1000
1219 POWER_CLASS001_DEPTH000_RANGE000TO999_ARTIFACT108= 500
1220 POWER_CLASS002_DEPTH000_RANGE000TO999_ARTIFACT108= 1000
1221 POWER_CLASS003_DEPTH000_RANGE000TO999_ARTIFACT108= 1000
1222 POWER_CLASS004_DEPTH000_RANGE000TO999_ARTIFACT108= 1000
1223 POWER_CLASS005_DEPTH000_RANGE000TO999_ARTIFACT108= 1000
1224 POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT017= 650
1225 POWER_CLASS000_DEPTH000_RANGE000TO999_ARTIFACT017= 25000
1226 POWER_CLASS003_DEPTH000_RANGE000TO999_ARTIFACT017= 25000
1227 POWER_CLASS005_DEPTH000_RANGE000TO999_ARTIFACT017= 25000
1228 POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT044= 650
1229 POWER_CLASS000_DEPTH000_RANGE000TO999_ARTIFACT044= 25000
1230 POWER_CLASS003_DEPTH000_RANGE000TO999_ARTIFACT044= 25000
1231 POWER_CLASS005_DEPTH000_RANGE000TO999_ARTIFACT044= 25000
1232 POWER_CLASS000_DEPTH000_RANGE000TO999_ARTIFACT045= 7500
1233 POWER_CLASS001_DEPTH000_RANGE000TO999_ARTIFACT045= 500
1234 POWER_CLASS002_DEPTH000_RANGE000TO999_ARTIFACT045= 500
1235 POWER_CLASS003_DEPTH000_RANGE000TO999_ARTIFACT045= 700
1236 POWER_CLASS004_DEPTH000_RANGE000TO999_ARTIFACT045= 700
1237 POWER_CLASS005_DEPTH000_RANGE000TO999_ARTIFACT045= 700
1238 POWER_CLASS000_DEPTH000_RANGE000TO999_ARTIFACT046= 600
1239 POWER_CLASS001_DEPTH000_RANGE000TO999_ARTIFACT046= 500
1240 POWER_CLASS002_DEPTH000_RANGE000TO999_ARTIFACT046= 600
1241 POWER_CLASS003_DEPTH000_RANGE000TO999_ARTIFACT046= 600
1242 POWER_CLASS004_DEPTH000_RANGE000TO999_ARTIFACT046= 600
1243 POWER_CLASS005_DEPTH000_RANGE000TO999_ARTIFACT046= 600
1244 POWER_CLASS000_DEPTH000_RANGE000TO999_ARTIFACT061= 700
1245 POWER_CLASS001_DEPTH000_RANGE000TO999_ARTIFACT061= 500
1246 POWER_CLASS002_DEPTH000_RANGE000TO999_ARTIFACT061= 500
1247 POWER_CLASS003_DEPTH000_RANGE000TO999_ARTIFACT061= 700
1248 POWER_CLASS004_DEPTH000_RANGE000TO999_ARTIFACT061= 700
1249 POWER_CLASS005_DEPTH000_RANGE000TO999_ARTIFACT061= 700
1250 POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT126= 800
1251 # NOTE: Don't do this if you are using random artifacts (Cubragol speed)
1252 # POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT126= 25000
1253 POWER_CLASS999_DEPTH000_RANGE000TO999_ARTIFACT031= 500
1254
1255 # Condition 058 is used miltiple times relating to inventory
1256 # items. Weak characters need to not be slow.
1257 CND058=_STR 15 >
1258
1259 # Inventory items
1260 POWER_CLASS999_DEPTH000_RANGE001TO006_FUEL= 60000 EACH
1261 POWER_CLASS999_DEPTH000_CND058_RANGE007TO008_FUEL= 500 EACH
1262 POWER_CLASS999_DEPTH000_RANGE001TO008_FOOD= 50000 EACH
1263 POWER_CLASS999_DEPTH000_CND058_RANGE009TO015_FOOD= 200 EACH
1264 # Carry extra food if Regen
1265 POWER_CLASS999_DEPTH000_CND051_RANGE000TO015_FOOD= 700 EACH
1266 CND051=_REG 1 >= _CLEVEL 20 <= &&
1267 # ID scrolls, but not too many if Low Strength
1268 POWER_CLASS999_DEPTH000_RANGE001TO004_ID= 6000 EACH
1269 POWER_CLASS999_DEPTH000_CND058_RANGE005TO010_ID= 6000 EACH
1270 # This is *ID*
1271 POWER_CLASS999_DEPTH000_RANGE001TO003_ITEM177= 10000 EACH
1272 POWER_CLASS999_DEPTH000_RANGE005TO010_ITEM177= 2000 EACH
1273 POWER_CLASS999_DEPTH000_RANGE001TO005_APFE= 10000 EACH
1274 POWER_CLASS999_DEPTH000_RANGE006TO010_APFE= 2000 EACH
1275 POWER_CLASS999_DEPTH000_RANGE001TO005_AGLYPH= 10000 EACH
1276 POWER_CLASS999_DEPTH000_RANGE006TO010_AGLYPH= 2000 EACH
1277 POWER_CLASS999_DEPTH000_RANGE001TO003_RECALL= 50000 EACH
1278 POWER_CLASS999_DEPTH000_CND058_RANGE004TO007_RECALL= 5000 EACH
1279 # Resist Heat and Cold for Warriors (for now)
1280 POWER_CLASS000_DEPTH000_CND059_RANGE001TO004_ARESHEAT= 500 EACH
1281 CND059=_IFIRE !
1282 POWER_CLASS000_DEPTH000_CND060_RANGE001TO004_ARESCOLD= 500 EACH
1283 CND060=_ICOLD !
1284 # scrolls of phase door
1285 POWER_CLASS999_DEPTH000_RANGE000TO004_APHASE= 50000 EACH
1286 POWER_CLASS999_DEPTH000_RANGE005TO008_APHASE= 1000 EACH
1287 POWER_CLASS999_DEPTH000_CND058_RANGE009TO015_APHASE= 500 EACH
1288 POWER_CLASS999_DEPTH000_RANGE001TO002_AESCAPE= 10000 EACH
1289 POWER_CLASS999_DEPTH090_CND050_RANGE003TO005_AESCAPE= 30000
1290 CND050=_CDEPTH 90 >
1291 POWER_CLASS999_DEPTH000_RANGE001TO005_ATELEPORT= 10000 EACH
1292 POWER_CLASS999_DEPTH000_RANGE006TO999_ATELEPORT= 50000
1293 #POWER_CLASS999_DEPTH000_CND058_RANGE006TO010_ATELEPORT= 10000 EACH
1294 #POWER_CLASS999_DEPTH000_CND058_RANGE010TO999_ATELEPORT= 100000
1295 #POWER_CLASS999_DEPTH000_RANGE001TO005_ATELEPORTLVL= 10000 EACH
1296
1297 # Healing stuff gets complex and is very class dependant
1298 POWER_CLASS000_DEPTH000_RANGE001TO020_HEAL= 8000 EACH
1299 POWER_CLASS003_DEPTH000_RANGE001TO020_HEAL= 8000 EACH
1300 # *HEAL*
1301 POWER_CLASS999_DEPTH000_RANGE001TO002_ITEM419= 10000 EACH
1302 # first two LIFE give 9000 if you have no *HEAL*
1303 POWER_CLASS999_DEPTH000_CND052_RANGE001TO002_ITEM420= 9000
1304 CND052=_ITEM419 0 ==
1305 # rod of healing
1306 POWER_CLASS000_DEPTH000_RANGE001TO002_ITEM374= 20000 EACH
1307 POWER_CLASS003_DEPTH000_RANGE001TO002_ITEM374= 20000 EACH
1308 POWER_CLASS001_DEPTH000_RANGE001TO020_HEAL= 4000 EACH
1309 POWER_CLASS004_DEPTH000_RANGE001TO020_HEAL= 4000 EACH
1310 POWER_CLASS005_DEPTH000_RANGE001TO020_HEAL= 4000 EACH
1311 POWER_CLASS001_DEPTH000_RANGE001TO002_ITEM419= 9000 EACH
1312 POWER_CLASS004_DEPTH000_RANGE001TO002_ITEM419= 9000 EACH
1313 POWER_CLASS005_DEPTH000_RANGE001TO002_ITEM419= 9000 EACH
1314 # make sure level 1 Priest sell thier healing potion for quick cash
1315 POWER_CLASS002_DEPTH000_CND056_RANGE000TO999_ITEM242= -2000 EACH
1316 CND056=_CLEVEL 1 ==
1317 POWER_CLASS002_DEPTH000_RANGE000TO010_ITEM242= 2000 EACH
1318
1319 # if your max mana is more than 100, reward up to ten restore manas
1320 POWER_CLASS999_DEPTH000_CND057_RANGE001TO010_ITEM266= 4000 EACH
1321 CND057=_MAXSP 100 >
1322 # and some magi staff charges
1323 POWER_CLASS999_DEPTH000_CND057_RANGE001TO100_ASTFMAGI= 4000 EACH
1324
1325 POWER_CLASS999_DEPTH000_RANGE001TO005_ACCW= 5000 EACH
1326 POWER_CLASS999_DEPTH000_CND058_RANGE006TO010_ACCW= 5000 EACH
1327 # next 5 at 500 if you done have resist conf or are below level 35
1328 POWER_CLASS999_DEPTH000_CND062_RANGE011TO015_ACCW= 500 EACH
1329 CND062=_RCONF ! _CLEVEL 35 < ||
1330
1331 # If you don't have RCONF, give reward for collecting cure conf
1332 POWER_CLASS999_DEPTH000_CND063_RANGE001TO010_ITEM008= 400 EACH
1333 CND063=_RCONF !
1334 # If you don't have RBLIND, give reward for collecting cure blind
1335 POWER_CLASS999_DEPTH000_CND065_RANGE001TO005_ITEM006= 300 EACH
1336 CND065=_RBLIND !
1337 # If you don't have RPOIS, give reward for collecting cure pois
1338 POWER_CLASS999_DEPTH000_CND067_RANGE001TO005_ACUREPOIS= 250 EACH
1339 CND067=_RPOIS !
1340 POWER_CLASS999_DEPTH000_RANGE000TO999_ADETTRAP= 4000
1341 POWER_CLASS999_DEPTH000_RANGE000TO999_ADETDOOR= 2000
1342 POWER_CLASS999_DEPTH000_RANGE000TO999_ADETEVIL= 1000
1343 POWER_CLASS999_DEPTH000_RANGE000TO999_AMAGICMAP= 4000
1344 POWER_CLASS999_DEPTH000_RANGE000TO999_ALITE= 1000
1345 # Genocide - only collect when deep
1346 POWER_CLASS999_DEPTH100_RANGE001TO010_ITEM207= 10000 EACH
1347 POWER_CLASS999_DEPTH100_RANGE011TO020_ITEM207= 2000 EACH
1348 # Mass Genocide - only collect when deep
1349 POWER_CLASS999_DEPTH100_RANGE001TO010_ITEM200= 10000 EACH
1350 POWER_CLASS999_DEPTH100_RANGE011TO020_ITEM200= 2000 EACH
1351
1352 POWER_CLASS999_DEPTH000_RANGE001TO005_ARECHARGE= 5000 EACH
1353
1354 POWER_CLASS000_DEPTH000_RANGE001TO010_AMISSILES= 1000 EACH
1355 POWER_CLASS001_DEPTH000_RANGE001TO010_AMISSILES= 1000 EACH
1356 POWER_CLASS002_DEPTH000_RANGE001TO010_AMISSILES= 1000 EACH
1357 POWER_CLASS003_DEPTH000_RANGE001TO010_AMISSILES= 1000 EACH
1358 POWER_CLASS004_DEPTH000_RANGE001TO020_AMISSILES= 1000 EACH
1359 POWER_CLASS005_DEPTH000_RANGE001TO010_AMISSILES= 1000 EACH
1360 POWER_CLASS000_DEPTH000_CND058_RANGE011TO040_AMISSILES= 100 EACH
1361 POWER_CLASS001_DEPTH000_CND058_RANGE011TO040_AMISSILES= 100 EACH
1362 POWER_CLASS002_DEPTH000_CND058_RANGE011TO040_AMISSILES= 100 EACH
1363 POWER_CLASS003_DEPTH000_CND058_RANGE011TO040_AMISSILES= 100 EACH
1364 POWER_CLASS004_DEPTH000_CND058_RANGE021TO070_AMISSILES= 100 EACH
1365 POWER_CLASS005_DEPTH000_CND058_RANGE011TO040_AMISSILES= 100 EACH
1366 #too many missiles
1367 POWER_CLASS000_DEPTH000_RANGE050TO999_AMISSILES= -1000 EACH
1368 POWER_CLASS001_DEPTH000_RANGE050TO999_AMISSILES= -1000 EACH
1369 POWER_CLASS002_DEPTH000_RANGE050TO999_AMISSILES= -1000 EACH
1370 POWER_CLASS003_DEPTH000_RANGE050TO999_AMISSILES= -1000 EACH
1371 POWER_CLASS004_DEPTH000_RANGE075TO999_AMISSILES= -1000 EACH
1372 POWER_CLASS005_DEPTH000_RANGE050TO999_AMISSILES= -1000 EACH
1373
1374 # If you have up to 3 staffs of power or holiness you get rewarded.
1375 # first gets 2500
1376 POWER_CLASS999_DEPTH000_RANGE000TO999_FORMULA070
1377 FORMULA070=_ITEM324 _ITEM327 || 2500 *
1378 # all three get 500
1379 POWER_CLASS999_DEPTH000_RANGE000TO999_FORMULA071
1380 FORMULA071=_ITEM324 _ITEM327 + 3 < _ITEM324 _ITEM327 + * 500 *
1381 POWER_CLASS999_DEPTH000_RANGE000TO999_FORMULA072
1382 FORMULA072=_ITEM324 _ITEM327 + 3 >= 3 * 500 *
1383 # If you have up to 3 staffs of destruction you get rewarded.
1384 POWER_CLASS999_DEPTH000_RANGE000TO999_ITEM307= 5000
1385 POWER_CLASS999_DEPTH000_RANGE000TO003_ITEM307= 200 EACH
1386
1387 # Wand of Teleport Other (or Spells)
1388 POWER_CLASS999_DEPTH000_RANGE000TO999_ATPORTOTHER= 5000
1389 # bonus for Warriors
1390 POWER_CLASS000_DEPTH000_RANGE000TO015_ATPORTOTHER= 50000
1391 POWER_CLASS999_DEPTH000_RANGE000TO010_ATPORTOTHER= 1000 EACH
1392 POWER_CLASS999_DEPTH000_RANGE010TO999_ATPORTOTHER= 61000
1393
1394 # High Level Spell Books
1395 POWER_CLASS001_DEPTH000_RANGE001TO999_ITEM379= 300000
1396 POWER_CLASS003_DEPTH000_RANGE001TO999_ITEM379= 300000
1397 POWER_CLASS004_DEPTH000_RANGE001TO999_ITEM379= 300000
1398 POWER_CLASS002_DEPTH000_RANGE001TO999_ITEM384= 300000
1399 POWER_CLASS005_DEPTH000_RANGE001TO999_ITEM384= 300000
1400 POWER_CLASS001_DEPTH000_RANGE001TO999_ITEM380= 300000
1401 POWER_CLASS003_DEPTH000_RANGE001TO999_ITEM380= 300000
1402 POWER_CLASS004_DEPTH000_RANGE001TO999_ITEM380= 300000
1403 POWER_CLASS002_DEPTH000_RANGE001TO999_ITEM385= 300000
1404 POWER_CLASS005_DEPTH000_RANGE001TO999_ITEM385= 300000
1405 POWER_CLASS001_DEPTH000_RANGE001TO999_ITEM381= 300000
1406 POWER_CLASS003_DEPTH000_RANGE001TO999_ITEM381= 300000
1407 POWER_CLASS004_DEPTH000_RANGE001TO999_ITEM381= 300000
1408 POWER_CLASS002_DEPTH000_RANGE001TO999_ITEM386= 300000
1409 POWER_CLASS005_DEPTH000_RANGE001TO999_ITEM386= 300000
1410 POWER_CLASS001_DEPTH000_RANGE001TO999_ITEM382= 300000
1411 POWER_CLASS003_DEPTH000_RANGE001TO999_ITEM382= 300000
1412 POWER_CLASS004_DEPTH000_RANGE001TO999_ITEM382= 300000
1413 POWER_CLASS002_DEPTH000_RANGE001TO999_ITEM387= 300000
1414 POWER_CLASS005_DEPTH000_RANGE001TO999_ITEM387= 300000
1415 POWER_CLASS001_DEPTH000_RANGE001TO999_ITEM383= 300000
1416 POWER_CLASS003_DEPTH000_RANGE001TO999_ITEM383= 300000
1417 POWER_CLASS004_DEPTH000_RANGE001TO999_ITEM383= 300000
1418 POWER_CLASS002_DEPTH000_RANGE001TO999_ITEM388= 300000
1419 POWER_CLASS005_DEPTH000_RANGE001TO999_ITEM388= 300000
1420
1421
1422
1423