rename item hooks to use the new name scheme, register body, new meleeWeapon.handleImpact hook and statusEffect.apply.ItemIdentifier hook

This commit is contained in:
Evil Factory
2022-02-02 11:52:08 -03:00
parent efc62387ff
commit 15294a4a61
4 changed files with 15 additions and 6 deletions
@@ -1135,6 +1135,13 @@ namespace Barotrauma
if (lifeTimer <= 0) { return; }
}
{
if (entity is Item item)
{
GameMain.Lua.hook.Call("statusEffect.apply." + item.Prefab.Identifier, this, deltaTime, entity, targets, worldPosition);
}
}
Hull hull = GetHull(entity);
Vector2 position = GetPosition(entity, targets, worldPosition);
foreach (ISerializableEntity serializableEntity in targets)