From e3004337cddb703ff51c723415d541f396110666 Mon Sep 17 00:00:00 2001 From: ChocoTaco Date: Fri, 8 Mar 2019 18:08:59 -0500 Subject: [PATCH] DM update --- Classic/scripts/DMGame.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Classic/scripts/DMGame.cs b/Classic/scripts/DMGame.cs index eb22ef7..bcc8b35 100644 --- a/Classic/scripts/DMGame.cs +++ b/Classic/scripts/DMGame.cs @@ -524,6 +524,22 @@ function Player::maxInventory(%this, %data) return %max; } +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") + { + %amount *= 1.2; + } + + if(%targetObject.client.armor $= "Heavy") + { + %amount *= 1.5; + } +} + }; function DMGame::sendGameVoteMenu(%game, %client, %key)