Extending the Combat System

The current combat system is very simple. An entity attacks another entity and always inflicts one point of damage. This type of combat system doesn’t provide much of a difficulty curve as the adventurer progresses through the dungeon.

Let’s fix this problem by allowing different entities to inflict varying amounts of damage. Specifically, we’ll adjust the game so that the adventurer can inflict more damage as they find better weapons, and some monsters will cause more damage to the player thanks to bigger claws.

Damage from weapons and claws

Add a base_damage field to the Template structure in the spawner/template.rs:

Get hands-on with 1400+ tech skills courses.