diff options
-rw-r--r-- | crawl-ref/docs/crawl_manual.txt | 7 | ||||
-rw-r--r-- | crawl-ref/source/item_use.cc | 11 |
2 files changed, 18 insertions, 0 deletions
diff --git a/crawl-ref/docs/crawl_manual.txt b/crawl-ref/docs/crawl_manual.txt index b9dbc93e2f..796d5c141c 100644 --- a/crawl-ref/docs/crawl_manual.txt +++ b/crawl-ref/docs/crawl_manual.txt @@ -2861,3 +2861,10 @@ Clar clarity Cons conservation Gourm gourmand Ward warding + +Debugging inscriptions +---------------------- + +If you've entered wizard mode, then you can change the zapping range of a +wand by inscribing it with 'range:number' (e.g., 'range:50'). This only works +for wands zapped by the player. diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index 8f703652b7..16d2717b38 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -4138,6 +4138,17 @@ void zap_wand(int slot) // Reset range. beam.range = _wand_range(type_zapped); + +#ifdef WIZARD + if (you.wizard) + { + std::string str = wand.inscription; + int wiz_range = strip_number_tag(str, "range:"); + if (wiz_range != TAG_UNFOUND) + beam.range = wiz_range; + } +#endif + // zapping() updates beam. zapping( type_zapped, 30 + roll_dice(2, you.skills[SK_EVOCATIONS]), beam ); |