fix github #172 - ^T inconsistencies; add m^T
Fixes #172 Casting teleport-away via ^T used different requirements for energy, strength, and hunger than casting it via 'Z'. The strength and hunger requirements were more stringent, the energy one more lenient. When it rejected a cast attempt due to any of those, it used up the move, but 'Z' didn't. When testing my fix, I wanted an easier way than a debugger to control how ^T interacts with wizard mode, so finally got around to a first cut at being able to invoke it via wizard mode but not override those energy/strength/hunger requirements. It uses the 'm' prefix to ask for a menu. 'm^T' gives four options about how to teleport. (There are other permutations which aren't handled.) Also noticed while testing: ^T wouldn't attempt to cast teleport-away if you didn't know the corresponding spellbook. 'Z' will attempt that because it is possible to forget a book and still know its spell.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 extern.h $NHDT-Date: 1545964581 2018/12/28 02:36:21 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.678 $ */
|
||||
/* NetHack 3.6 extern.h $NHDT-Date: 1546565812 2019/01/04 01:36:52 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.680 $ */
|
||||
/* Copyright (c) Steve Creps, 1988. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -2329,6 +2329,7 @@ E void NDECL(age_spells);
|
||||
E int NDECL(docast);
|
||||
E int FDECL(spell_skilltype, (int));
|
||||
E int FDECL(spelleffects, (int, BOOLEAN_P));
|
||||
E int FDECL(tport_spell, (int));
|
||||
E void NDECL(losespells);
|
||||
E int NDECL(dovspell);
|
||||
E void FDECL(initialspell, (struct obj *));
|
||||
|
||||
Reference in New Issue
Block a user