Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions kod/object/item/passitem/defmod/armor/chain.kod
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ messages:

GetResistanceModifiers()
{
return [ [ATCK_WEAP_THRUST,5],
[ATCK_WEAP_PIERCE,10],
[ATCK_WEAP_SLASH,10]
return [ [ATCK_WEAP_PIERCE,20]

];
}

Expand Down
17 changes: 9 additions & 8 deletions kod/object/item/passitem/defmod/armor/neruarmr.kod
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,12 @@ messages:

GetResistanceModifiers()
{
return [ [-ATCK_SPELL_FIRE,15],
[-ATCK_SPELL_SHOCK,15],
[-ATCK_SPELL_COLD,15],
[-ATCK_SPELL_ACID,15],
[-ATCK_SPELL_QUAKE,-15]
return [ [-ATCK_SPELL_FIRE,25],
[-ATCK_SPELL_SHOCK,25],
[-ATCK_SPELL_COLD,25],
[-ATCK_SPELL_ACID,25],
[-ATCK_SPELL_QUAKE,-20],
[-ATCK_WEAP_ALL,-10]
];
}

Expand Down Expand Up @@ -124,9 +125,9 @@ messages:
[&ColdResistanceMod,100],
[&ShockResistanceMod,100],
[&AcidResistanceMod,100],
[&PierceResistanceMod,25],
[&SlashResistanceMod,25],
[&BludgeonResistanceMod,25]];
[&PierceResistanceMod,50],
[&SlashResistanceMod,50],
[&BludgeonResistanceMod,50]];
}

end
Expand Down
7 changes: 3 additions & 4 deletions kod/object/item/passitem/defmod/armor/plate.kod
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,9 @@ messages:

GetResistanceModifiers()
{
return [ [ATCK_WEAP_THRUST,15],
[ATCK_WEAP_SLASH,10],
[-ATCK_SPELL_FIRE,-10],
[-ATCK_SPELL_SHOCK,-15]
return [ [-ATCK_SPELL_FIRE,-10],
[-ATCK_SPELL_SHOCK,-15],
[-ATCK_WEAP_ALL,10]
];
}

Expand Down
5 changes: 3 additions & 2 deletions kod/object/item/passitem/defmod/armor/scale.kod
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ messages:

GetResistanceModifiers()
{
return [ [ATCK_WEAP_BLUDGEON,10],
[ATCK_WEAP_SLASH,10]
return [ [ATCK_WEAP_BLUDGEON,15],
[ATCK_WEAP_SLASH,15],
[ATCK_WEAP_THRUST,15]
];
}

Expand Down
49 changes: 49 additions & 0 deletions kod/object/passive/spell/debuff/blind.kod
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ resources:
"Something burns in your eyes, causing excruciating pain and a loss "
"of vision."
blind_off = "Your eyes begin to function again."
blind_spell_out_of_range = "%s%s is too far away to hit with %s."

blind_sound = qblind.wav

Expand Down Expand Up @@ -62,6 +63,7 @@ properties:
piBaseDuration = 4000
piSpellPowerModifier = 60
piDeviation = 10
piRange = 9 * FINENESS

% Min and max values for Blind duration.
piMinBlind = 4000
Expand All @@ -77,6 +79,53 @@ messages:

return;
}

CanPayCosts(who=$,lTargets=$,bItemCast=FALSE)
{
local target, i, iTotalRange;

% Propagate area effect spells to Spell, if valid targets. CanPayCosts
% in AttackSpell handles single target attacks, Spell handles multiples.
if vbIsAreaEffect
{
if lTargets = $
{
Send(who,@MsgSendUser,#message_rsc=spell_no_targets,
#parm1=Send(self,@GetName));

return FALSE;
}

propagate;
}

if piRange <> $
{
iTotalRange = piRange;

% A little fudge factor to account for lag drift, etc.
if IsClass(target,&Player) AND Send(target,@HasMovedRecently)
{
iTotalRange = iTotalRange + RANGE_MOVEMENT_BONUS;
}

if Send(target,@GetOwner) <> $
AND Send(who,@SquaredFineDistanceTo3D,#what=target)
> (iTotalRange * iTotalRange)
{
if NOT bItemCast
{
Send(who,@MsgSendUser,#message_rsc=blind_spell_out_of_range,
#parm1=Send(target,@GetCapDef),#parm2=Send(target,@GetName),
#parm3=vrName);
}

return FALSE;
}
}

propagate;
}

SetSpellPlayerFlag(who = $)
{
Expand Down