summaryrefslogtreecommitdiff
path: root/src/map/magic-interpreter-base.c
diff options
context:
space:
mode:
authorFate <fate-tmw@googlemail.com>2008-11-22 01:15:44 -0700
committerFate <fate-tmw@googlemail.com>2008-11-22 01:15:44 -0700
commitc70aa417cdc1ef4b475131bdda14a3aca4135577 (patch)
tree63e35b12c9d5b7e11c33e88cd1ab8fe04c9e11ba /src/map/magic-interpreter-base.c
parent7e9ef4d4154caf5c982e0753e9685c04ee52d913 (diff)
downloadtmwa-c70aa417cdc1ef4b475131bdda14a3aca4135577.tar.gz
tmwa-c70aa417cdc1ef4b475131bdda14a3aca4135577.tar.bz2
tmwa-c70aa417cdc1ef4b475131bdda14a3aca4135577.tar.xz
tmwa-c70aa417cdc1ef4b475131bdda14a3aca4135577.zip
Added NONMAGIC flag to distinguish `keyword' operations (such as `marry') from regular spells (keywords don't require spellcasting ability)
Diffstat (limited to 'src/map/magic-interpreter-base.c')
-rw-r--r--src/map/magic-interpreter-base.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/magic-interpreter-base.c b/src/map/magic-interpreter-base.c
index dc0fa02..a6c5795 100644
--- a/src/map/magic-interpreter-base.c
+++ b/src/map/magic-interpreter-base.c
@@ -294,6 +294,7 @@ spellguard_can_satisfy(spellguard_check_t *check, character_t *caster, env_t *en
int retval = check_prerequisites(caster, check->catalysts);
+/*
fprintf(stderr, "MC(%d/%s)? %d%d%d%d (%u <= %u)\n",
caster->bl.id, caster->status.name,
retval,
@@ -301,6 +302,7 @@ spellguard_can_satisfy(spellguard_check_t *check, character_t *caster, env_t *en
check->mana <= caster->status.sp,
check_prerequisites(caster, check->components),
caster->cast_tick, tick);
+*/
if (retval && near_miss)
*near_miss = 1; // close enough!
@@ -318,8 +320,6 @@ spellguard_can_satisfy(spellguard_check_t *check, character_t *caster, env_t *en
caster->cast_tick = tick + casttime; /* Make sure not to cast too frequently */
- fprintf(stderr, " -> NC %u + %u = %u\n", tick, casttime, caster->cast_tick);
-
consume_components(caster, check->components);
pc_heal(caster, 0, -check->mana);
}