So I setup the applies for the Demon Skin. It is working fine except for one thing.
When I do a apply_hit or apply_move and try and put MORE than 100 as the modifier, it ends up giving me a negative number to the Maxhits/Maxmoves.
case SPELL_DEMON_SKIN:
af[0].location = APPLY_AC;
af[0].duration = 1 + (GET_LEVEL(ch) / 2);
af[0].modifier = -50;
SET_BIT_AR(af[0].bitvector, AFF_DEMON);
af[1].location = APPLY_HITROLL;
af[1].duration = 1 + (GET_LEVEL(ch) / 2);
af[1].modifier = (GET_LEVEL(ch))/4;
SET_BIT_AR(af[1].bitvector, AFF_DEMON);
af[2].location = APPLY_DAMROLL;
af[2].duration = 1 + (GET_LEVEL(ch) / 2);
af[2].modifier = (GET_LEVEL(ch))/4;
SET_BIT_AR(af[2].bitvector, AFF_DEMON);
af[3].location = APPLY_HIT;
af[3].duration = (GET_LEVEL(ch) / 2);
af[3].modifier = 200;
SET_BIT_AR(af[3].bitvector, AFF_DEMON);
af[4].location = APPLY_MOVE;
af[4].duration = 1 + (GET_LEVEL(ch) / 2);
af[4].modifier = 200;
SET_BIT_AR(af[4].bitvector, AFF_DEMON);
to_vict = "You skin becomes leathery.";
break;
Results -- If I see the modifier to 100, it works fine but anything over that produces a negative to maxmove and hits, probably maxmana as well.
Affected by: DEMON
SPL: ( 29hr) Demon Skin -56 to MAXMOVE, sets DEMON,
SPL: ( 28hr) Demon Skin -56 to MAXHIT, sets DEMON,
SPL: ( 29hr) Demon Skin +13 to DAMROLL, sets DEMON,
SPL: ( 29hr) Demon Skin +13 to HITROLL, sets DEMON,
SPL: ( 29hr) Demon Skin -50 to ARMOR, sets DEMON,
I would like to be able to run the modifier up a bit higher as I want to add some other spells that do things like this.
Bramage
Thanks for any help.