Damage System

Like in most games each "damageable" thing(like an entity or a building) has a healthbar, this is where damage is applied and if it drops below 0 the thing dies, pretty standard stuff, where the system gets interesting is you have damage types (slash, pierce, hack, blunt, fire, frost, etc.,) for everything

Attacks can have multiple damage types, examples:
hammer - only blunt
spear - 90% pierce 10% slash
sword - 70% slash 30% pierce
fire enchanted axe - 60% hack 30% fire 10% blunt
frost enchanted heavy longbow - 50% pierce, 30% frost, 20% blunt

Defenders(what ever receives the damage) can have resistances for damage types and it will act as traditional armor reducing incoming damage to the healthbar, defenders can also have weaknesses for certain damage types, examples:
elephants, rhinos and alike have thick hides so they resist some slashing damage
a knight with plate armor will be practically invulnerable to slashing damage, highly resistance to piercing damage if he has chainmail underneath it(still have resistance just from the plate), vulnerable to blunt fire and ice damage depending on the padding/insulation quality of his underarmor(gambeson or whatever)

some defenders can also reflect certain damage types back to the attacks.

some damage types are damage-over-time, like poison damage.

some damage types can interact with ingame systems, for example fire & frost modifies the entity temperature read of the environment(i'm not quite sure how to word this in english).
entities(animals, citizens and soldiers) all have temperature ranges they can be at or they take damage, this is modified by stuff like clothing and gear for citizens and soldiers, damage types like fire and frost also modifies that.


there is also a fire mechanic(not the damage type), plants and building can catch and spread fire, plants and building on fire will slowly be destroyed and when destroyed the fire will go out, there are ways to fight fires with citizens assigned to said job
fires can be started from fire damage and will apply fire damage to all damageable stuff in the area
fires will modify the environmental temperature too, in a greater radius than the damage radius.


I think that pretty much covers the damage system, I'll talk about the combat mechanics themselves when i'll get further down the development, right now there is only basic melee combat.

No comments:

Post a Comment