From 87af95b67cb45b72bffd77f7744dc1a10cb3f25a Mon Sep 17 00:00:00 2001 From: Lane Kolbly Date: Sun, 23 Jul 2017 04:46:38 -0500 Subject: Updated armor cover calculation. (#3858) * Updated armor damage calculation. + Added lua docs, added casts from float to int. * Changed verbage in docstring and comment. --- Server/Plugins/APIDump/APIDesc.lua | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'Server') diff --git a/Server/Plugins/APIDump/APIDesc.lua b/Server/Plugins/APIDump/APIDesc.lua index 58a79fb66..288466303 100644 --- a/Server/Plugins/APIDump/APIDesc.lua +++ b/Server/Plugins/APIDump/APIDesc.lua @@ -3019,6 +3019,17 @@ local Hash = cCryptoHash.sha1HexString("DataToHash") }, Notes = "Adds the specified amount of speed in the Z axis direction.", }, + ApplyArmorDamage = + { + Params = + { + { + Name = "DamageBlocked", + Type = "number", + }, + }, + Notes = "Lowers armor durability, as if the armor blocked the given amount of damage.", + }, ArmorCoversAgainst = { Params = @@ -3124,6 +3135,31 @@ local Hash = cCryptoHash.sha1HexString("DataToHash") }, Notes = "Returns the entity classname that this class implements. Each descendant overrides this function.", }, + GetEnchantmentCoverAgainst = + { + Params = + { + { + Name = "AttackerEntity", + Type = "cEntity", + }, + { + Name = "DamageType", + Type = "eDamageType", + }, + { + Name = "RawDamage", + Type = "number", + }, + }, + Returns = + { + { + Type = "number", + }, + }, + Notes = "Returns the number of hitpoints out of RawDamage that the enchantments on the currently equipped armor would cover. See {{TakeDamageInfo}} for more information on attack damage.", + }, GetEntityType = { Returns = -- cgit v1.2.3