thejoshwolfe / legend-of-swarkland

Turn-based action fantasy puzzle game inspired by NetHack and Crypt of the Necrodancer
http://wolfesoftware.com/legend-of-swarkland/
Other
91 stars 5 forks source link

shouldn't be able to perceive yourself going blind while your normal vision isn't working #49

Closed thejoshwolfe closed 5 years ago

thejoshwolfe commented 7 years ago
@test
!monster lich player 3 1
!wish potion ethereal_vision
pickup 0000000000000000000000000000000000000000000000000000000000000003
!wish potion blindness
pickup 0000000000000000000000000000000000000000000000000000000000000004
quaff 0000000000000000000000000000000000000000000000000000000000000003
  @rng 36 midpoint:2000:potion_of_ethereal_vision_expiration
wait
@mark_events
wait
throw -1 0 0000000000000000000000000000000000000000000000000000000000000004
  @rng 6 inclusive:4:6:throw_distance
  @rng 6 int:12:dodge
  @rng 2 inclusive:1:2:throw_impact_damage
  @rng 24 midpoint:1000:potion_of_blindness_expiration
@expect_event "a lich king throws a orange potion."
@expect_event "a orange potion hits you!"
@expect_event "a orange potion shatters and splashes on you!"
@expect_no_events

@end_test