Unit combat_resolver
Classes, Interfaces, Objects and Records
Types
Constants
Description
Combat Resolver unit
Melee combat is decided by rolling a random number between 1 and the entity's ATTACK value. Then modifiers are added, for example, a 1D6+4 axe will roll a 6 sided die and add the result plus 4 to the total damage amount. This is then removed from the opponents defence rating. If the opponents defence doesn't soak up the whole damage amount, the remainder is taken from their Health. Spite damage is when an entity loses a combat round and the player can roll a 6, dealing damage 'in spite' of losing the round.
This is partly inspired by the Tunnels & Trolls rules, my favourite tabletop RPG.
Uses
- SysUtils
- globalUtils
- ui
- logging
Overview
Functions and Procedures
procedure combat(npcID: smallint); |
procedure spiteDMG(npc: smallint); |
Variables
deathList: array[0..31] of smallint; |
Description
Functions and Procedures
procedure combat(npcID: smallint); |
Attack NPC's |
procedure spiteDMG(npc: smallint); |
Spite damage - damage dealt by the loser of a combat round 'in spite' of losing |
Variables
deathList: array[0..31] of smallint; |
List of creatures killed |
Generated by PasDoc 0.16.0.