From f2fc31eff2333fbc7d687078a1b5fc941dc256a7 Mon Sep 17 00:00:00 2001 From: AntumDeluge Date: Sat, 3 Sep 2016 17:59:34 -0700 Subject: [PATCH] [antum_entities] battle.lua: Add 'unmovable', 'heavy', 'average', & 'light' for 'battle.weight' definitions. --- mods/antum/entities/definitions/battle.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/mods/antum/entities/definitions/battle.lua b/mods/antum/entities/definitions/battle.lua index 456499b8..42fcea6e 100644 --- a/mods/antum/entities/definitions/battle.lua +++ b/mods/antum/entities/definitions/battle.lua @@ -27,6 +27,8 @@ antum.battle = {} + +-- HP defines how durable the entity is when attacked antum.battle.hp = { high = { hp_max = 40, @@ -38,3 +40,19 @@ antum.battle.hp = { hp_max = 10, }, } + +-- Weight defines how far back the entity will be pushed when attacked +antum.battle.weight = { + unmovable = { + knockback_level = 0, + }, + heavy = { + knockback_level = 1, + }, + average = { + knockback_level = 2, + }, + light = { + knockback_level = 4, + }, +}