Changeset 325
- Timestamp:
- 07/12/07 18:42:23 (1 year ago)
- Files:
-
- trunk/lib/edit/artifact.txt (modified) (24 diffs)
- trunk/lib/edit/object.txt (modified) (74 diffs)
- trunk/src/Makefile.src (modified) (1 diff)
- trunk/src/cmd6.c (modified) (5 diffs)
- trunk/src/dungeon.c (modified) (5 diffs)
- trunk/src/effects.c (modified) (34 diffs)
- trunk/src/effects.h (modified) (8 diffs)
- trunk/src/externs.h (modified) (1 diff)
- trunk/src/init1.c (modified) (2 diffs)
- trunk/src/obj-info.c (modified) (4 diffs)
- trunk/src/object1.c (modified) (1 diff)
- trunk/src/script.h (modified) (1 diff)
- trunk/src/use-obj.c (deleted)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/edit/artifact.txt
r322 r325 113 113 F:ACTIVATE | SEE_INVIS | HOLD_LIFE | RES_LITE | RES_DARK | NO_FUEL | 114 114 F:INSTA_ART 115 A:DET ECT_ALL:30+d30115 A:DET_ALL:30+d30 116 116 M:The Arkenstone forms an image in your mind... 117 117 D:A great globe seemingly filled with moonlight, the famed Heart of the … … 142 142 F:RES_ACID | RES_COLD | RES_ELEC | 143 143 F:INSTA_ART 144 A:DISP _EVIL:50+d50144 A:DISPEL_EVIL:50+d50 145 145 M:The amulet floods the area with goodness... 146 146 D:The ancient heirloom of Ingwe, high lord of the Vanyar, against whom nothing … … 217 217 F:IM_FIRE | RES_FIRE | RES_NETHR | RES_FEAR | 218 218 F:INSTA_ART 219 A:FIRE 3:20+d20219 A:FIRE_BALL:20+d20 220 220 M:Narya glows deep red... 221 221 D:The Ring of Fire, set with a ruby that glows like flame. Narya is one … … 237 237 F:IM_COLD | RES_COLD | RES_BLIND | TELEPATHY | 238 238 F:INSTA_ART 239 A: FROST5:20+d20239 A:COLD_BALL2:20+d20 240 240 M:Nenya glows bright white... 241 241 D:The Ring of Adamant, with a pure white stone as centerpiece. Nenya is one … … 257 257 F:IM_ELEC | RES_ELEC | RES_POIS | RES_DISEN | 258 258 F:INSTA_ART 259 A:ELEC 2:20+d20259 A:ELEC_BALL2:20+d20 260 260 M:Vilya glows deep blue... 261 261 D:The Ring of Sapphire, with clear blue gems that shine like stars, … … 533 533 F:RES_ELEC | RES_ACID | RES_DISEN | RES_DARK | HIDE_TYPE | 534 534 F:SUST_WIS | SUST_DEX | SUST_CHR 535 A:STARLIGHT :100535 A:STARLIGHT2:100 536 536 M:Your Sheild of Deflection glows with the light of a thousand stars... 537 537 D:The legendary shield of Ereinion Gil-galad, who fought his way to the … … 678 678 F:INT | WIS | SEARCH | HIDE_TYPE | 679 679 F:RES_BLIND | RES_CONFU | SEE_INVIS | ACTIVATE 680 A:DET ECT_ALL:55+d55680 A:DET_ALL:55+d55 681 681 M:Holhenneth forms an image in your mind... 682 682 D:A famous helm of forged iron granting extraordinary powers of mind and … … 874 874 P:2:1d1:0:0:15 875 875 F:RES_FIRE | REGEN | ACTIVATE 876 A:FIRE 1:8+d8876 A:FIRE_BOLT:8+d8 877 877 M:Your Gauntlets are covered in fire... 878 878 D:A set of gauntlets that smoulder with an unnatural heat. … … 886 886 P:2:1d1:0:0:15 887 887 F:RES_COLD | SLOW_DIGEST | ACTIVATE 888 A: FROST1:7+d7888 A:COLD_BOLT:7+d7 889 889 M:Your Gauntlets are covered in frost... 890 890 D:A set of handgear, freezing with unnatural cold. … … 898 898 P:2:1d1:0:0:15 899 899 F:RES_ELEC | LITE | ACTIVATE 900 A: LIGHTNING_BOLT:6+d6900 A:ELEC_BOLT:6+d6 901 901 M:Your Gauntlets are covered in sparks... 902 902 D:A set of handgear with sparks that crackle across its knuckleguards. … … 910 910 P:2:1d1:0:0:15 911 911 F:RES_ACID | FEATHER | ACTIVATE 912 A:ACID 1:5+d5912 A:ACID_BOLT:5+d5 913 913 M:Your Gauntlets are covered in acid... 914 914 D:A set of gauntlets that gives off a foul, acrid odour yet remains untarnished. … … 1040 1040 P:0:2d4:4:6:0 1041 1041 F:BRAND_FIRE | RES_FIRE | ACTIVATE | SHOW_MODS 1042 A:FIRE 1:8+d81042 A:FIRE_BOLT:8+d8 1043 1043 M:Narthanc is covered in fire... 1044 1044 D:A flame, instead of a blade, seems to spring forth from this dagger's hilt. … … 1052 1052 P:0:2d4:4:6:0 1053 1053 F:BRAND_COLD | RES_COLD | ACTIVATE | SHOW_MODS 1054 A: FROST1:7+d81054 A:COLD_BOLT:7+d8 1055 1055 M:Nimthanc is covered in frost... 1056 1056 D:From the hilt of this dagger springs not so much a blade as an icicle. … … 1064 1064 P:0:2d4:4:6:0 1065 1065 F:BRAND_ELEC | RES_ELEC | ACTIVATE | SHOW_MODS 1066 A: LIGHTNING_BOLT:6+d61066 A:ELEC_BOLT:6+d6 1067 1067 M:Dethanc is covered in sparks... 1068 1068 D:In this dagger is bound the very force of the lightning. … … 1091 1091 F:BRAND_COLD | RES_COLD | SEE_INVIS | SLOW_DIGEST | REGEN | ACTIVATE | 1092 1092 F:SHOW_MODS 1093 A: FROST2:5+d51093 A:COLD_BALL50:5+d5 1094 1094 M:Your Dagger is covered in frost... 1095 1095 D:A frosty dagger wreathed in a nimbus of ice with a hilt of elk horn and … … 1121 1121 F:SLAY_DEMON | SLAY_ORC | FREE_ACT | RES_COLD | FEATHER | 1122 1122 F:SLOW_DIGEST | ACTIVATE | SHOW_MODS 1123 A: FROST4:501123 A:COLD_BOLT2:50 1124 1124 M:Arunuth glows a pale blue... 1125 1125 D:The beautiful sword of Thingol, justly named "King's Ire". It glistens … … 1263 1263 F:FREE_ACT | RES_COLD | RES_LITE | LITE | SEE_INVIS | SLOW_DIGEST | REGEN | 1264 1264 F:ACTIVATE | SHOW_MODS 1265 A: FROST3:401265 A:COLD_BALL100:40 1266 1266 M:Ringil glows an intense blue... 1267 1267 D:The weapon of Fingolfin, High King of the Noldor; it shines like a column … … 1280 1280 F:RES_FIRE | RES_DISEN | 1281 1281 F:SUST_STR | SUST_DEX | SEE_INVIS | ACTIVATE | SHOW_MODS 1282 A:FIRE 2:401282 A:FIRE_BOLT72:40 1283 1283 M:Anduril rages in fire... 1284 1284 D:The famed "Flame of the West", the Sword that was Broken and is forged … … 1467 1467 F:BRAND_COLD | RES_COLD | SLAY_EVIL | SLAY_TROLL | SLAY_ORC | KILL_UNDEAD | 1468 1468 F:FREE_ACT | SLOW_DIGEST | ACTIVATE | BLESSED | SHOW_MODS 1469 A: FROST3:351469 A:COLD_BALL100:35 1470 1470 M:Aeglos glows an intense blue... 1471 1471 D:The mighty spear of Gil-galad, famed as "Snow-point" in the songs of Elves, … … 1629 1629 F:SEE_INVIS | SLOW_DIGEST | REGEN | ACTIVATE | 1630 1630 F:BLESSED | SHOW_MODS 1631 A:TELE_ AWAY:501631 A:TELE_OTHER:50 1632 1632 M:Your Trident glows deep red... 1633 1633 D:The awesome weapon of the Vala Ulmo, Lord of Waters. Mightest of all the … … 1737 1737 P:0:2d6:5:7:2 1738 1738 F:BRAND_FIRE | RES_FIRE | ACTIVATE | SHOW_MODS 1739 A:FIRE 2:201739 A:FIRE_BOLT72:20 1740 1740 M:Firestar rages in fire... 1741 1741 D:A famed battle-lord of old with a ruddy head, coloured as embers are that … … 1809 1809 F:SLAY_EVIL | BRAND_FIRE | SLAY_TROLL | SLAY_ORC | 1810 1810 F:HOLD_LIFE | RES_FIRE | RES_NETHR | SEE_INVIS | ACTIVATE | SHOW_MODS 1811 A:PROB E:201811 A:PROBING:20 1812 1812 M:The Quarterstaff of Olorin glows brightly... 1813 1813 D:A staff tall and sturdy, borne of old by Gandalf. Rough-hewn runes that … … 1863 1863 F:SLAY_ANIMAL | KILL_DRAGON | SLAY_TROLL | SLAY_GIANT | 1864 1864 F:ACTIVATE | SHOW_MODS 1865 A:FIRE 3:151865 A:FIRE_BALL:15 1866 1866 M:The whip glows deep red... 1867 1867 D:A great crackling Balrog's whip of flame, this weapon could bring … … 1995 1995 F:RES_FIRE | RES_ELEC | RES_NETHR | HOLD_LIFE | 1996 1996 F:ACTIVATE 1997 A:DISP _EVIL:100+d1001997 A:DISPEL_EVIL:100+d100 1998 1998 M:The Ball-and-Chain floods the area will goodness... 1999 1999 D:The weapon of a mighty dwarven priest, whose shade is rumoured to trunk/lib/edit/object.txt
r321 r325 1596 1596 A:5/1:10/1 1597 1597 F:EASY_KNOW 1598 D:DET_TRAPS 1598 E:DET_TRAP 1599 1599 1600 1600 ## XXX 195 XXX ## … … 2222 2222 P:0:1d1:0:0:0 2223 2223 C:6+d10 2224 D:It lights up a line of squares, inflicting 6d8 points of damage on 2225 D: light-sensitive creatures on the line. 2224 E:LIGHT_LINE 2226 2225 2227 2226 N:270:Lightning Bolts … … 2232 2231 P:0:1d1:0:0:0 2233 2232 C:6+d8 2234 D:It shoots a lightning bolt that inflicts 6d6 points of damage, with a 2235 D: 20% chance of getting a lightning beam. 2233 E:ELEC_BOLT 2236 2234 2237 2235 N:271:Frost Bolts … … 2242 2240 P:0:1d1:0:0:0 2243 2241 C:6+d5 2244 D:It shoots a frost bolt that inflicts 6d8 points of damage, with a 20% 2245 D: chance of getting a cold beam. 2242 E:COLD_BOLT 2246 2243 2247 2244 N:272:Fire Bolts … … 2252 2249 P:0:1d1:0:0:0 2253 2250 C:6+d8 2254 D:It shoots a fire bolt that inflicts 12d8 points of damage, with a 20% 2255 D: chance of getting a fire beam. 2251 E:FIRE_BOLT2 2256 2252 2257 2253 N:273:Stone to Mud … … 2262 2258 P:0:1d1:0:0:0 2263 2259 C:3+d4 2264 D:It turns the first section of wall encountered by the beam shot by 2265 D: this spell into mud. 2266 D: Permanent walls are not affected. 2267 D: If a monster that is susceptible to rock remover is caught in the 2268 D: beam, it will take 20+1d30 points of damage. 2260 E:STONE_TO_MUD 2269 2261 2270 2262 N:274:Polymorph … … 2275 2267 P:0:1d1:0:0:0 2276 2268 C:6+d8 2277 D:It attempts to polymorph a single monster. 2278 D: Uniques are unaffected. 2269 E:POLYMORPH 2279 2270 2280 2271 N:275:Heal Monster … … 2285 2276 P:0:1d1:0:0:0 2286 2277 C:8+d20 2287 D:It cures a single monster for 4d6 points of damage. 2278 E:MON_HEAL 2288 2279 2289 2280 N:276:Haste Monster … … 2294 2285 P:0:1d1:0:0:0 2295 2286 C:8+d20 2296 D:It hastes a single monster. 2287 E:MON_HASTE 2297 2288 2298 2289 N:277:Slow Monster … … 2303 2294 P:0:1d1:0:0:0 2304 2295 C:6+d10 2305 D:It attempts to slow down a single monster. 2306 D: Uniques are unaffected. 2296 E:MON_SLOW 2307 2297 2308 2298 N:278:Confuse Monster … … 2313 2303 P:0:1d1:0:0:0 2314 2304 C:6+d12 2315 D:It attempts to confuse a single monster. 2316 D: Uniques are unaffected. 2305 E:MON_CONFUSE 2317 2306 2318 2307 N:279:Sleep Monster … … 2323 2312 P:0:1d1:0:0:0 2324 2313 C:8+d15 2325 D:It attempts to put a single monster to sleep. 2326 D: Uniques are unaffected. 2314 E:MON_SLEEP 2327 2315 2328 2316 N:280:Drain Life … … 2333 2321 P:0:1d1:0:0:0 2334 2322 C:3+d3 2335 D:It inflicts 150 points of damage on a single monster that is not 2336 D: undead, a demon, an elemental, a golem, or a vortex. 2323 E:DRAIN_LIFE3 2337 2324 2338 2325 N:281:Trap/Door Destruction … … 2343 2330 P:0:1d1:0:0:0 2344 2331 C:6+d8 2345 D:It destroys all doors and disarms all traps in a line. 2332 E:TDOOR_DEST 2346 2333 2347 2334 N:282:Magic Missile … … 2352 2339 P:0:1d1:0:0:0 2353 2340 C:6+d10 2354 D:It fires a magic missile that inflicts 3d4 points of damage, with a 2355 D: 20% chance of getting a magic beam. 2341 E:MISSILE 2356 2342 2357 2343 N:283:Clone Monster … … 2362 2348 P:0:1d1:0:0:0 2363 2349 C:3+d5 2364 D:It hastes and fully heals a single monster. If the monster is next to 2365 D: an empty space and not a unique, a new monster of the same type will 2366 D: be created. 2350 E:MON_CLONE 2367 2351 2368 2352 N:284:Scare Monster … … 2373 2357 P:0:1d1:0:0:0 2374 2358 C:3+d5 2375 D:It attempts to scare a single monster. 2376 D: Uniques are unaffected. 2359 E:MON_SCARE 2377 2360 2378 2361 N:285:Teleport Other … … 2383 2366 P:0:1d1:0:0:0 2384 2367 C:6+d5 2385 D:It produces a beam that teleports all monsters caught in it up to 100 2386 D: squares away. 2368 E:TELE_OTHER 2387 2369 2388 2370 N:286:Disarming … … 2393 2375 P:0:1d1:0:0:0 2394 2376 C:4+d5 2395 D:It produces a beam that disarms all traps, unlocks all locked doors 2396 D: and reveals all secret doors. 2377 E:DISARMING 2397 2378 2398 2379 N:287:Lightning Balls … … 2404 2385 C:4+d8 2405 2386 F:IGNORE_ELEC 2406 D:It shoots a radius-2 lightning ball that inflicts 64 points of damage 2407 D: at its center. 2387 E:ELEC_BALL 2408 2388 2409 2389 N:288:Cold Balls … … 2415 2395 C:2+d6 2416 2396 F:IGNORE_COLD 2417 D:It shoots a radius-2 frost ball that inflicts 96 points of damage at 2418 D: its center. 2397 E:COLD_BALL100 2419 2398 2420 2399 N:289:Fire Balls … … 2426 2405 C:2+d4 2427 2406 F:IGNORE_FIRE 2428 D:It shoots a radius-2 fire ball that inflicts 144 points of damage at 2429 D: its center. 2407 E:FIRE_BALL 2430 2408 2431 2409 N:290:Stinking Cloud … … 2436 2414 P:0:1d1:0:0:0 2437 2415 C:6+d8 2438 D:It shoots a radius-2 poison cloud that inflicts 12 points of damage at 2439 D: its center. 2416 E:STINKING_CLOUD 2440 2417 2441 2418 N:291:Acid Balls … … 2447 2424 C:2+d5 2448 2425 F:IGNORE_ACID 2449 D:It shoots a radius-2 acid ball that inflicts 120 points of damage at 2450 D: its center. 2426 E:ACID_BALL 2451 2427 2452 2428 N:292:Wonder … … 2458 2434 C:8+d15 2459 2435 F:IGNORE_ACID | IGNORE_ELEC | IGNORE_FIRE | IGNORE_COLD 2460 D:It has a random effect chosen from the various wand effects, except 2461 D: Dragon's Flame, Dragon's Frost, Dragon's Breath, Annihilation. 2436 E:WONDER 2462 2437 2463 2438 ## XXX 293 XXX ## … … 2470 2445 P:0:1d1:0:0:0 2471 2446 C:6+d8 2472 D:It shoots an acid bolt that inflicts 10d8 points of damage, with a 20% 2473 D: chance of getting an acid beam. 2447 E:ACID_BOLT2 2474 2448 2475 2449 N:295:Dragon's Flame … … 2481 2455 C:1+d3 2482 2456 F:IGNORE_ACID | IGNORE_ELEC | IGNORE_FIRE | IGNORE_COLD 2483 D:It shoots a radius-3 fire ball that inflicts 200 points of damage at 2484 D: its center. 2457 E:FIRE_BALL200 2485 2458 2486 2459 N:296:Dragon's Frost … … 2492 2465 C:1+d3 2493 2466 F:IGNORE_ACID | IGNORE_ELEC | IGNORE_FIRE | IGNORE_COLD 2494 D:It shoots a radius-3 frost ball that inflicts 160 points of damage at 2495 D: its center. 2467 E:COLD_BALL160 2496 2468 2497 2469 N:297:Dragon's Breath … … 2503 2475 C:1+d3 2504 2476 F:IGNORE_ACID | IGNORE_ELEC | IGNORE_FIRE | IGNORE_COLD 2505 D:It shoots a radius-3 fire/frost/acid/lightning/poison ball that 2506 D: inflicts 200/160/200/180/120 points of damage at its center (damage 2507 D: type chosen at random). 2477 E:WAND_BREATH 2508 2478 2509 2479 N:298:Annihilation … … 2515 2485 C:1+d2 2516 2486 F:IGNORE_ACID | IGNORE_ELEC | IGNORE_FIRE | IGNORE_COLD 2517 D:It inflicts 250 points of damage on a single monster that is not 2518 D: undead, a demon, an elemental, a golem, or a vortex. 2487 E:DRAIN_LIFE4 2519 2488 2520 2489 ## XXX 299 XXX ## … … 2530 2499 P:0:1d2:0:0:0 2531 2500 C:6+d5 2532 D:It detects all traps in the immediate area. 2501 E:DET_TRAP 2533 2502 2534 2503 N:301:Treasure Location … … 2539 2508 P:0:1d2:0:0:0 2540 2509 C:8+d20 2541 D:It detects all treasure in the immediate area. 2510 E:DET_GOLD 2542 2511 2543 2512 N:302:Object Location … … 2548 2517 P:0:1d2:0:0:0 2549 2518 C:6+d15 2550 D:It detects all objects in the immediate area. 2519 E:DET_OBJ 2551 2520 2552 2521 N:303:Teleportation … … 2557 2526 P:0:1d2:0:0:0 2558 2527 C:5+d4 2559 D:It teleports you randomly with a maximum range of 100 squares. 2528 E:TELE_LONG 2560 2529 2561 2530 N:304:Earthquakes … … 2566 2535 P:0:1d2:0:0:0 2567 2536 C:3+d5 2568 D:It causes an earthquake centered on you that has a 10-square radius; 2569 D: this randomly places new walls and floor space. Monsters can be 2570 D: caught by a newly created wall; this does not affect monsters that 2571 D: can bore through rock or pass through walls, but otherwise monsters 2572 D: take 4d8 points of damage if they can evade the falling rock, or are 2573 D: lost inside the rock forever if they cannot. 2537 E:EARTHQUAKES 2574 2538 2575 2539 N:305:Summoning … … 2579 2543 A:10/1:50/1 2580 2544 P:0:1d2:0:0:0 2581 C:1+d3 2582 D:It summons 1d4 monsters that are generated at the current dungeon 2583 D: level. 2584 D: If a monster normally appears in groups, a whole group will appear. 2585 D: If a monster normally has escorts, it will appear with escorts. 2545 C:2d3 2546 E:SUMMON_MON 2586 2547 2587 2548 N:306:Light … … 2592 2553 P:0:1d2:0:0:0 2593 2554 C:8+d20 2594 D:It lights up an area with a radius of 2 squares, plus the entire room 2595 D: if you are currently in one. 2596 D: This inflicts 2d8 points of damage on any light-sensitive creatures 2597 D: within the radius of the spell. 2555 E:LIGHT 2598 2556 2599 2557 N:307:*Destruction* … … 2604 2562 P:0:1d2:0:0:0 2605 2563 C:1+d3 2606 D:It destroys a circular area centered at you with a radius of 15 2607 D: squares, randomly placing new walls and floor space (stairs are 2608 D: immune). All monsters and objects (excluding artifacts) are removed 2609 D: from the affected area. 2610 D: This effect will also cause blindness lasting for 10+1d10 turns 2611 D: unless you have resistance to either blindness or light. 2564 E:DESTRUCTION2 2612 2565 2613 2566 N:308:Starlight … … 2618 2571 P:0:1d2:0:0:0 2619 2572 C:6+d5 2620 D:It fires a line of light in all eight cardinal directions; 2621 D: light-sensitive monsters caught in one of the lines take 6d8 points 2622 D: of damage. 2573 E:STARLIGHT 2623 2574 2624 2575 N:309:Haste Monsters … … 2629 2580 P:0:1d2:0:0:0 2630 2581 C:8+d8 2631 D:It hastes all monsters within line of sight. 2582 E:LOSHASTE 2632 2583 2633 2584 N:310:Slow Monsters … … 2638 2589 P:0:1d2:0:0:0 2639 2590 C:6+d5 2640 D:It attempts to slow down all monsters within line of sight. 2641 D: Uniques are unaffected. 2591 E:LOSSLOW 2642 2592 2643 2593 N:311:Sleep Monsters … … 2648 2598 P:0:1d2:0:0:0 2649 2599 C:6+d5 2650 D:It attempts to put all monsters within line of sight to sleep. 2651 D: Uniques are unaffected. 2600 E:LOSSLEEP 2652 2601 2653 2602 N:312:Cure Light Wounds … … 2658 2607 P:0:1d2:0:0:0 2659 2608 C:6+d5 2660 D:It cures 1d8 points of damage. 2609 #! now works like a real CLW effect 2610 E:CURE_LIGHT 2661 2611 2662 2612 N:313:Detect Invisible … … 2667 2617 P:0:1d2:0:0:0 2668 2618 C:8+d15 2669 D:It detects all invisible monsters in the immediate area. 2619 E:DET_INVIS 2670 2620 2671 2621 N:314:Speed … … 2676 2626 P:0:1d2:0:0:0 2677 2627 C:4+d3 2678 D:It hastes you (+10 to speed) for 15+1d30 turns (or 5 additional turns 2679 D: if you already are under the effect of a temporary haste 2680 D: enchantment). 2628 #! now duration d25+15; used to be d30+15 2629 E:HASTE 2681 2630 2682 2631 N:315:Slowness … … 2687 2636 P:0:1d2:0:0:0 2688 2637 C:8+d8 2689 D:It slows you down (-10 to speed) for 15+1d30 turns; this duration is 2690 D: cumulative with other temporary slowing enchantments. 2638 E:SLOW 2691 2639 2692 2640 N:316:Door/Stair Location … … 2697 2645 P:0:1d2:0:0:0 2698 2646 C:6+d8 2699 D:It detects all doors and stairs in the immediate area. 2647 E:DET_DOORSTAIR 2700 2648 2701 2649 N:317:Remove Curse … … 2706 2654 P:0:1d2:0:0:0 2707 2655 C:4+d3 2708 D:It removes all ordinary curses from all equipped items. 2709 D: Heavy or permanent curses are unaffected. 2656 E:REMOVE_CURSE 2710 2657 2711 2658 N:318:Detect Evil … … 2716 2663 P:0:1d2:0:0:0 2717 2664 C:8+d15 2718 D:It detects all evil monsters in the immediate area. 2665 E:DET_EVIL 2719 2666 2720 2667 N:319:Curing … … 2725 2672 P:0:1d2:0:0:0 2726 2673 C:4+d3 2727 D:It cures all stunning, heals all cut damage, neutralizes poison, and 2728 D: cures blindness and confusion. 2674 E:CURE_TEMP 2729 2675 2730 2676 N:320:Dispel Evil … … 2735 2681 P:0:1d2:0:0:0 2736 2682 C:4+d3 2737 D:It inflicts 60 points of damage on all evil monsters within line of 2738 D: sight. 2683 E:DISPEL_EVIL60 2739 2684 2740 2685 N:321:Probing … … 2745 2690 P:0:1d2:0:0:0 2746 2691 C:2+d6 2747 D:It probes all monsters within line of sight, giving information both 2748 D: on the current hit points of the monsters and many of their 2749 D: characteristics and abilities (excluding melee, spellcasting, and 2750 D: breath attacks). 2692 E:PROBING 2751 2693 2752 2694 N:322:Darkness … … 2757 2699 P:0:1d2:0:0:0 2758 2700 C:8+d8 2759 D:It darkens all squares within 3 squares of you, plus the entire room 2760 D: if you are currently in one; and blinds you for 3+1d5 turns, unless 2761 D: you have resistance to blindness. 2701 E:DARKNESS 2762 2702 2763 2703 N:323:Banishment … … 2768 2708 P:0:1d2:0:0:0 2769 2709 C:1+d2 2770 D:It removes all monsters represented by a chosen symbol from the level. 2771 D: Uniques are unaffected. 2772 D: You take 1d4 points of damage for every monster removed. 2710 E:BANISHMENT 2773 2711 2774 2712 N:324:Power … … 2779 2717 P:0:1d2:0:0:0 2780 2718 C:1+d3 2781 D:It inflicts 120 points of damage on all monsters within line of sight. 2719 E:DISPEL_ALL 2782 2720 2783 2721 N:325:the Magi … … 2787 2725 A:70/2 2788 2726 P:0:1d2:0:0:0 2789 C:2+d2 2790 D:It restores both intelligence and mana points to maximum if either or 2791 D: both are currently below maximum. 2792 2793 N:326:Perception 2727 C:2+1d2 2728 E:STAFF_MAGI 2729 2730 N:326:Identify 2794 2731 G:_:d 2795 2732 I:55:5:0 … … 2798 2735 P:0:1d2:0:0:0 2799 2736 C:5+d15 2800 D:It reveals all normal (magical but non-hidden) powers of one object. 2801 D: (The spell may be aborted without using up a charge.) 2737 E:IDENTIFY 2802 2738 2803 2739 N:327:Holiness … … 2807 2743 A:70/2 2808 2744 P:0:1d2:0:0:0 2809 C:2+d2 2810 D:It inflicts 120 points of damage on all evil monsters within line of 2811 D: sight, cures 50 points of damage, cures all stunning, heals all cut 2812 D: damage, neutralizes poison, removes fear, and also grants you the 2813 D: enchantment of protection from evil for a duration equal to 1d25 plus 2814 D: three times your character level. 2815 2816 N:328:Enlightenment 2745 C:2d2 2746 E:STAFF_HOLY 2747 2748 N:328:Mapping 2817 2749 G:_:d 2818 2750 I:55:9:0 … … 2821 2753 P:0:1d2:0:0:0 2822 2754 C:5+d5 2823 D:It maps out a portion of the level centered on you. 2755 E:MAPPING 2824 2756 2825 2757 N:329:Healing … … 2830 2762 P:0:1d2:0:0:0 2831 2763 C:1+d2 2832 D:It cures 300 points of damage, cures all stunning, and heals all cut 2833 D: damage. 2834 2764 #! now cures poison, blindness, conf also 2765 E:CURE_FULL 2835 2766 2836 2767 ##### Basic Books ##### … … 3016 2947 N:351:Door/Stair Location 3017 2948 G:-:d 3018 I:66:1: 702949 I:66:1:0 3019 2950 W:15:0:15:1000 3020 2951 A:15/1 3021 2952 P:0:1d1:0:0:0 3022 2953 F:EASY_KNOW 3023 D:It detects all secret doors and stairs in the immediate area. 2954 E:DET_DOORSTAIR:70 3024 2955 3025 2956 N:352:Trap Location 3026 2957 G:-:d 3027 I:66:0: 502958 I:66:0:0 3028 2959 W:5:0:15:100 3029 2960 A:5/1 3030 2961 P:0:1d1:0:0:0 3031 2962 F:EASY_KNOW 3032 D:It detects all traps in the immediate area. 2963 E:DET_TRAP:50 3033 2964 3034 2965 N:353:Probing 3035 2966 G:-:d 3036 I:66:7: 502967 I:66:7:0 3037 2968 W:40:0:15:4000 3038 2969 A:40/4 3039 2970 P:0:1d1:0:0:0 3040 2971 F:EASY_KNOW 3041 D:It probes all monsters within line of sight, giving information both 3042 D: on the current hit points of the monsters and many of their 3043 D: characteristics and abilities (excluding melee, spellcasting, and 3044 D: breath attacks). 2972 E:PROBING:50 3045 2973 3046 2974 N:354:Recall 3047 2975 G:-:d 3048 I:66:3: 602976 I:66:3:0 3049 2977 W:30:0:15:4000 3050 2978 A:30/4 3051 2979 P:0:1d1:0:0:0 3052 2980 F:EASY_KNOW | IGNORE_ELEC 3053 D:It invokes the spell of recall. 2981 E:RECALL:60 3054 2982 3055 2983 N:355:Illumination 3056 2984 G:-:d 3057 I:66:4: 302985 I:66:4:0 3058 2986 W:20:0:15:1000 3059 2987 A:20/1 3060 2988 P:0:1d1:0:0:0 3061 2989 F:EASY_KNOW 3062 D:It lights up an area with a radius of 2 squares, plus the entire room 3063 D: if you are currently in one. 3064 D: This inflicts 2d8 points of damage on any light-sensitive creatures 3065 D: within the radius of the spell. 2990 E:LIGHT:30 3066 2991 3067 2992 N:356:Light 3068 2993 G:-:d 3069 I:66:15: 92994 I:66:15:0 3070 2995 W:10:0:15:500 3071 2996 A:10/1 3072 2997 P:0:1d1:0:0:0 3073 2998 F:EASY_KNOW 3074 D:It lights up a line of squares, inflicting 6d8 points of damage on any 3075 D: light-sensitive creatures on the line. 2999 E:LIGHT_LINE:9 3076 3000 3077 3001 N:357:Lightning Bolts 3078 3002 G:-:d 3079 I:66:21: 113003 I:66:21:0 3080 3004 W:20:0:15:2000 3081 3005 A:20/1 3082 3006 P:0:1d1:0:0:0 3083 3007 F:EASY_KNOW 3084 D:It shoots a lightning bolt that inflicts 6d6 points of damage, with a 3085 D: 10% chance of getting a lightning beam. 3008 E:ELEC_BOLT:11 3086 3009 3087 3010 N:358:Frost Bolts 3088 3011 G:-:d 3089 I:66:23: 133012 I:66:23:0 3090 3013 W:25:0:15:2500 3091 3014 A:25/1 3092 3015 P:0:1d1:0:0:0 3093 3016 F:EASY_KNOW 3094 D:It shoots a frost bolt that inflicts 10d8 points of damage, with a 10% 3095 D: chance of getting a frost beam. 3017 E:COLD_BOLT2:13 3096 3018 3097 3019 N:359:Fire Bolts 3098 3020 G:-:d 3099 I:66:22: 153021 I:66:22:0 3100 3022 W:30:0:15:3000 3101 3023 A:30/1 3102 3024 P:0:1d1:0:0:0 3103 3025 F:EASY_KNOW 3104 D:It shoots a fire bolt that inflicts 16d8 points of damage, with a 10% 3105 D: chance of getting a fire beam. 3026 E:FIRE_BOLT3:15 3106 3027 3107 3028 N:360:Polymorph 3108 3029 G:-:d 3109 I:66:19: 253030 I:66:19:0 3110 3031 W:35:0:15:1200 3111 3032 A:35/1 3112 3033 P:0:1d1:0:0:0 3113 3034 F:EASY_KNOW 3114 D:It attempts to polymorph a single monster. 3115 D: Uniques are unaffected. 3035 E:POLYMORPH:25 3116 3036 3117 3037 N:361:Slow Monster 3118 3038 G:-:d 3119 I:66:17: 203039 I:66:17:0 3120 3040 W:30:0:15:1500 3121 3041 A:30/1 3122 3042 P:0:1d1:0:0:0 3123 3043 F:EASY_KNOW 3124 D:It attempts to slow down a single monster. 3125 D: Uniques are unaffected. 3044 E:MON_SLOW:20 3126 3045 3127 3046 N:362:Sleep Monster 3128 3047 G:-:d 3129 I:66:16: 183048 I:66:16:0 3130 3049 W:30:0:15:1500 3131 3050 A:30/1 3132 3051 P:0:1d1:0:0:0 3133 3052 F:EASY_KNOW 3134 D:It attempts to put a single monster to sleep. 3135 D: Uniques are unaffected. 3053 E:MON_SLEEP:18 3136 3054 3137 3055 N:363:Drain Life 3138 3056 G:-:d 3139 I:66:18: 233057 I:66:18:0 3140 3058 W:75:0:15:3600 3141 3059 A:75/4 3142 3060 P:0:1d1:0:0:0 3143 3061 F:EASY_KNOW 3144 D:It inflicts 150 points of damage on a single monster that is not 3145 D: undead, a demon, an elemental, a golem, or a vortex. 3062 E:DRAIN_LIFE3:23 3146 3063 3147 3064 N:364:Teleport Other 3148 3065 G:-:d 3149 I:66:13: 253066 I:66:13:0 3150 3067 W:45:0:15:1400 3151 3068 A:45/2 3152 3069 P:0:1d1:0:0:0 3153 3070 F:EASY_KNOW 3154 D:It produces a beam that teleports all monsters caught in it up to 100 3155 D: squares away. 3071 E:TELE_OTHER:25 3156 3072 3157 3073 N:365:Disarming 3158 3074 G:-:d 3159 I:66:14: 303075 I:66:14:0 3160 3076 W:35:0:15:2100 3161 3077 A:35/1 3162 3078 P:0:1d1:0:0:0 3163 3079 F:EASY_KNOW 3164 D:It produces a beam that disarms all traps, unlocks all locked doors 3165 D: and reveals all secret doors. 3080 E:DISARMING:30 3166 3081 3167 3082 N:366:Lightning Balls 3168 3083 G:-:d 3169 I:66:25: 233084 I:66:25:0 3170 3085 W:55:0:15:4000 3171 3086 A:55/1 3172 3087 P:0:1d1:0:0:0 3173 3088 F:EASY_KNOW 3174 D:It shoots a radius-2 lightning ball that inflicts 64 points of damage 3175 D: at its center. 3089 E:ELEC_BALL:23 3176 3090 3177 3091 N:367:Cold Balls 3178 3092 G:-:d 3179 I:66:27: 253093 I:66:27:0 3180 3094 W:60:0:15:4500 3181 3095 A:60/1 3182 3096 P:0:1d1:0:0:0 3183 3097 F:EASY_KNOW 3184 D:It shoots a radius-2 frost ball that inflicts 96 points of damage at 3185 D: its center. 3098 E:COLD_BALL100:25 3186 3099 3187 3100 N:368:Fire Balls 3188 3101 G:-:d 3189 I:66:26: 303102 I:66:26:0 3190 3103 W:75:0:15:5000 3191 3104 A:75/1 3192 3105 P:0:1d1:0:0:0 3193 3106 F:EASY_KNOW 3194 D:It shoots a radius-2 fire ball that inflicts 144 points of damage at 3195 D: its center. 3107 E:FIRE_BALL:30 3196 3108 3197 3109 N:369:Acid Balls 3198 3110 G:-:d 3199 I:66:24: 273111 I:66:24:0 3200 3112 W:70:0:15:5500 3201 3113 A:70/1 3202 3114 P:0:1d1:0:0:0 3203 3115 F:EASY_KNOW 3204 D:It shoots a radius-2 acid ball that inflicts 120 points of damage at 3205 D: its center. 3116 E:ACID_BALL:27 3206 3117 3207 3118 N:370:Acid Bolts 3208 3119 G:-:d 3209 I:66:20: 123120 I:66:20:0 3210 3121 W:40:0:15:3500 3211 3122 A:40/1 3212 3123 P:0:1d1:0:0:0 3213 3124 F:EASY_KNOW 3214 D:It shoots an acid bolt that inflicts 12d8 points of damage, with a 10% 3215 D: chance of getting an acid beam. 3216 3217 N:371:Enlightenment 3218 G:-:d 3219 I:66:5:99 3125 E:ACID_BOLT3:12 3126 3127 N:371:Magic Mapping 3128 G:-:d 3129 I:66:5:0 3220 3130 W:65:0:15:10000 3221 3131 A:65/4 3222 3132 P:0:1d1:0:0:0 3223 3133 F:EASY_KNOW 3224 D:It maps out a portion of the level centered on you. 3225 3226 N:372: Perception3227 G:-:d 3228 I:66:2: 103134 E:MAPPING:100 3135 3136 N:372:Identify 3137 G:-:d 3138 I:66:2:0 3229 3139 W:50:0:15:13000 3230 3140 A:50/8 3231 3141 P:0:1d1:0:0:0 3232 3142 F:EASY_KNOW | IGNORE_ELEC 3233 D:It reveals all normal (magical but non-hidden) powers of one object. 3234 D: (The spell may be aborted without using up a charge.) 3143 E:IDENTIFY:10 3235 3144 3236 3145 N:373:Curing 3237 3146 G:-:d 3238 I:66:8: 9993147 I:66:8:0 3239 3148 W:65:0:15:15000 3240 3149 A:65/8 3241 3150 P:0:1d1:0:0:0 3242 3151 F:EASY_KNOW | IGNORE_ELEC 3243 D:It cures all stunning, heals all cut damage, neutralizes poison, and 3244 D: cures blindness and confusion. 3152 E:CURE_TEMP:1000 3245 3153 3246 3154 N:374:Healing 3247 3155 G:-:d 3248 I:66:9: 9993156 I:66:9:0 3249 3157 W:80:0:15:20000 3250 3158 A:80/8 3251 3159 P:0:1d1:0:0:0 3252 3160 F:EASY_KNOW | IGNORE_ELEC 3253 D:It cures 500 points of damage, cures all stunning, and heals all cut 3254 D: damage. 3161 E:HEAL3:1000 3255 3162 3256 3163 N:375:Detection 3257 3164 G:-:d 3258 I:66:6: 993165 I:66:6:0 3259 3166 W:30:0:15:5000 3260 3167 A:30/8 3261 3168 P:0:1d1:0:0:0 3262 3169 F:EASY_KNOW | IGNORE_ELEC 3263 D:It detects all treasure, objects, secret doors, stairs, traps, and 3264 D: monsters in the immediate area. 3170 E:DET_ALL:100 3265 3171 3266 3172 N:376:Restoration 3267 3173 G:-:d 3268 I:66:10: 9993174 I:66:10:0 3269 3175 W:80:0:15:25000 3270 3176 A:80/16 3271 3177 P:0:1d1:0:0:0 3272 3178 F:EASY_KNOW | IGNORE_ELEC 3273 D:It restores experience points and all stats to maximum if any of them 3274 D: are below maximum. 3179 E:RESTORE_ST_LEV:1000 3275 3180 3276 3181 N:377:Speed 3277 3182 G:-:d 3278 I:66:11: 993183 I:66:11:0 3279 3184 W:95:0:15:50000 3280 3185 A:95/16 3281 3186 P:0:1d1:0:0:0 3282 3187 F:EASY_KNOW | IGNORE_ELEC 3283 D:It hastes you (+10 to speed) for 15+1d30 turns (or 5 additional turns 3284 D: if you already are under the effect of a temporary haste 3285 D: enchantment). 3188 E:HASTE:100 3286 3189 3287 3190 … … 3473 3376 F:RES_ACID | 3474 3377 F:ACTIVATE | IGNORE_ACID | IGNORE_ELEC | IGNORE_FIRE | IGNORE_COLD 3378 E:ACID_BALL:450+1d450 3475 3379 3476 3380 N:401:Blue Dragon Scale Mail~ … … 3482 3386 F:RES_ELEC | 3483 3387 F:ACTIVATE | IGNORE_ACID | IGNORE_ELEC | IGNORE_FIRE | IGNORE_COLD 3388 E:DRAGON_BLUE:450+1d450 3484 3389 3485 3390 N:402:White Dragon Scale Mail~ … … 3491 3396 F:RES_COLD | 3492 3397 F:ACTIVATE | IGNORE_ACID | IGNORE_ELEC | IGNORE_FIRE | IGNORE_COLD 3398 E:COLD_BALL100:450+1d450 3493 3399 3494 3400 N:403:Red Dragon Scale Mail~ … … 3500 3406 F:RES_FIRE | 3501 3407 F:ACTIVATE | IGNORE_ACID | IGNORE_ELEC | IGNORE_FIRE | IGNORE_COLD 3408 E:DRAGON_RED:450+1d450 3502 3409 3503 3410 N:404:Green Dragon Scale Mail~ … … 3509 3416 F:RES_POIS | 3510 3417 F:ACTIVATE | IGNORE_ACID | IGNORE_ELEC | IGNORE_FIRE | IGNORE_COLD 3418 E:DRAGON_GREEN:450+1d450 3511 3419 3512 3420 N:405:Multi-Hued Dragon Scale Mail~ … … 3518 3426 F:RES_ACID | RES_ELEC | RES_FIRE | RES_COLD | RES_POIS | 3519 3427 F:ACTIVATE | IGNORE_ACID | IGNORE_ELEC | IGNORE_FIRE | IGNORE_COLD 3428 E:DRAGON_MULTIHUED:225+1d225 3520 3429 3521 3430 N:406:Pseudo-Dragon Scale Mail~ … … 3527 3436 F:RES_LITE | RES_DARK | 3528 3437 F:ACTIVATE | IGNORE_ACID | IGNORE_ELEC | IGNORE_FIRE | IGNORE_COLD 3438 E:DRAGON_SHINING:300+1d300 3529 3439 3530 3440 N:407:Law Dragon Scale Mail~ … … 3536 3446 F:RES_SOUND | RES_SHARD | 3537 3447 F:ACTIVATE | IGNORE_ACID | IGNORE_ELEC | IGNORE_FIRE | IGNORE_COLD 3448 E:DRAGON_LAW:300+1d300 3538 3449 3539 3450 N:408:Bronze Dragon Scale Mail~ … … 3545 3456 F:RES_CONFU | 3546 3457 F:ACTIVATE | IGNORE_ACID | IGNORE_ELEC | IGNORE_FIRE | IGNORE_COLD 3458 E:DRAGON_BRONZE:450+1d450 3547 3459 3548 3460 N:409:Gold Dragon Scale Mail~ … … 3554 3466 F:RES_SOUND | 3555 3467 F:ACTIVATE | IGNORE_ACID | IGNORE_ELEC | IGNORE_FIRE | IGNORE_COLD 3468 E:DRAGON_GOLD:450+1d450 3556 3469 3557 3470 N:410:Chaos Dragon Scale Mail~ … … 3563 3476 F:RES_CHAOS | RES_DISEN | 3564 3477 F:ACTIVATE | IGNORE_ACID | IGNORE_ELEC | IGNORE_FIRE | IGNORE_COLD 3478 E:DRAGON_CHAOS:300+1d300 3565 3479 3566 3480 N:411:Balance Dragon Scale Mail~ … … 3572 3486 F:RES_SOUND | RES_SHARD | RES_CHAOS | RES_DISEN | 3573 3487 F:ACTIVATE | IGNORE_ACID | IGNORE_ELEC | IGNORE_FIRE | IGNORE_COLD 3488 E:DRAGON_BALANCE:300+1d300 3574 3489 3575 3490 N:412:Power Dragon Scale Mail~ … … 3583 3498 F:RES_LITE | RES_DARK | RES_NEXUS | RES_NETHR | RES_CHAOS | 3584 3499 F:ACTIVATE | IGNORE_ACID | IGNORE_ELEC | IGNORE_FIRE | IGNORE_COLD 3500 E:DRAGON_POWER:300+1d300 3585 3501 3586 3502 ## XXX 413 XXX ## trunk/src/Makefile.src
r317 r325 53 53 tables.o \ 54 54 ui.o \ 55 use-obj.o \56 55 util.o \ 57 56 variable.o \ trunk/src/cmd6.c
r321 r325 19 19 #include "angband.h" 20 20 #include "effects.h" 21 #include "script.h" 21 22 22 23 23 /* Types of item use */ … … 65 65 66 66 /* All still charging? */ 67 if (o_ptr-> timeout > (o_ptr->pval - k_ptr->pval)) return FALSE;67 if (o_ptr->number <= (o_ptr->timeout + (k_ptr->time_base - 1)) / k_ptr->time_base) return FALSE; 68 68 69 69 /* Otherwise OK */ … … 163 163 164 164 return TRUE; 165 } 166 167 /* 168 * Return the chance of an effect beaming, given a tval. 169 */ 170 static int beam_chance(int tval) 171 { 172 switch (tval) 173 { 174 case TV_WAND: return 20; 175 case TV_ROD: return 10; 176 } 177 178 return 0; 165 179 } 166 180 … … 236 250 } 237 251 238 /* Use the object */ 239 if (effect) 240 { 241 /* Do effect */ 242 used = do_effect(effect, &ident, dir); 243 244 /* Food feeds the player */ 245 if (o_ptr->tval == TV_FOOD || o_ptr->tval == TV_POTION) 246 (void)set_food(p_ptr->food + o_ptr->pval); 247 } 248 else 249 { 250 /* Use the more prosaic method */ 251 used = use_obje
