Heritage items, talismans
This commit is contained in:
parent
e7db1fd9f7
commit
129cac945b
109 changed files with 11659 additions and 188 deletions
|
|
@ -2567,6 +2567,19 @@ namespace Server.Mobiles
|
|||
}
|
||||
}
|
||||
|
||||
if ( from != null && Talisman is BaseTalisman )
|
||||
{
|
||||
BaseTalisman talisman = (BaseTalisman) Talisman;
|
||||
|
||||
if ( talisman.Protection != null && talisman.Protection.Type != null )
|
||||
{
|
||||
Type type = talisman.Protection.Type;
|
||||
|
||||
if ( type == from.GetType() )
|
||||
amount *= 1 - (int) ( ( (double) talisman.Protection.Amount ) / 100 );
|
||||
}
|
||||
}
|
||||
|
||||
base.Damage( amount, from );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue