File tree 3 files changed +32
-2
lines changed
3 files changed +32
-2
lines changed Original file line number Diff line number Diff line change 8
8
simalq.util [CommandError]
9
9
simalq.game-state [G]
10
10
simalq.geometry [pos-seed turn-and-pos-seed burst at]
11
- simalq.tile [Tile]
11
+ simalq.tile [Tile Damageable ]
12
12
simalq.tile.scenery [Scenery]
13
13
simalq.util [CommandError DamageType StatusEffect msg burst-damage refactor-hp])
14
14
(setv T True F False )
412
412
413
413
:flavor " This fell device vibrates with the barely contained energies of Hades as they hunger for the souls of the living. Aim carefully." )
414
414
415
+ (deftile " / " " a wand of annihilation" Usable
416
+ :color 'navy
417
+ :iq-ix 104
418
+ :acquirement-points 250
419
+
420
+ :use (meth [target]
421
+ " Utterly destroys everything at the target."
422
+ (for [t (list (at target))]
423
+ (cond
424
+ t.superblock
425
+ None
426
+ (isinstance t Damageable)
427
+ (.damage t Inf None)
428
+ T
429
+ (.rm-from-map t))))
430
+
431
+ :flavor " Now this is a real wand of nothing. A wand of nothingness. A wand of nothing left." )
432
+
415
433
(deftile " / " " a wand of flame" Usable
416
434
:color 'orange
417
435
:iq-ix 154
Original file line number Diff line number Diff line change 23
23
24
24
(do-mac `(do ~@(gfor [iq-ix stem] [
25
25
26
- [104 " wand_of_annihilation" ]
27
26
[105 " exit_making_wand" ]
28
27
[106 " wand_of_gating" ]
29
28
[121 " poison_gas_bomb" ]
Original file line number Diff line number Diff line change 488
488
(assert (= G.score (+ (* 12 hp) 10 (* 3 hp) (* 4 hp) (* 5 hp)))))
489
489
490
490
491
+ (defn test-wand-annihilation []
492
+ (init [])
493
+ (set-square 'E
494
+ " orc" " wall" " exit" " pile of gold" " negaton" " Void" " hole" )
495
+ ; Everything except the Void is destroyed by annihilation.
496
+ (use-item " wand of annihilation" 1 0 )
497
+ (assert-at 'E " Void" )
498
+ ; Contra IQ, we allow the player to kill herself with a wand of
499
+ ; annihilation, because it's funny.
500
+ (use-item " wand of annihilation" 0 0 )
501
+ (cant (wk 'E) " You're dead. You can undo or load a saved game." ))
502
+
503
+
491
504
(defn test-wand-flame []
492
505
(init [
493
506
:height 1
You can’t perform that action at this time.
0 commit comments