mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-03-06 13:10:21 +00:00
Parent last
This commit is contained in:
parent
e3004337cd
commit
b7e1721f8d
1 changed files with 2 additions and 2 deletions
|
|
@ -526,8 +526,6 @@ function Player::maxInventory(%this, %data)
|
|||
|
||||
function Armor::damageObject(%data, %targetObject, %sourceObject, %position, %amount, %damageType, %momVec, %mineSC)
|
||||
{
|
||||
parent::damageObject(%data, %targetObject, %sourceObject, %position, %amount, %damageType, %momVec, %mineSC);
|
||||
|
||||
//Other armors get more damage
|
||||
if(%targetObject.client.armor $= "Medium")
|
||||
{
|
||||
|
|
@ -538,6 +536,8 @@ function Armor::damageObject(%data, %targetObject, %sourceObject, %position, %am
|
|||
{
|
||||
%amount *= 1.5;
|
||||
}
|
||||
|
||||
parent::damageObject(%data, %targetObject, %sourceObject, %position, %amount, %damageType, %momVec, %mineSC);
|
||||
}
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue