drdplus / health
Body and soul harms, afflictions and their treatment of a being for Drd+
3.0.0
2022-01-03 14:11 UTC
Requires
- php: >=7.3
- drdplus/skills: ~3.0
- granam/string-enum: ^1.1
Requires (Dev)
- granam/exceptions-hierarchy: ^5.1
- granam/test-with-mockery: ^2.0
- mockery/mockery: ^1.2
- phpunit/phpunit: ^9.0
- roave/security-advisories: dev-master
README
Wounds
- aggregates every single not-yet healed wound
- knows number of serious injuries (six means death)
- knows malus caused by wounds and roll on will
- knows if person is still alive
- note: sum of wounds (its points) is kept by
Grid of wounds
Grid of wounds
- its three-rows size is determined by
wounds limit
(filled rows have effect onmalus
) - knows sum of
Wound
s (theirpoints of wound
respectively) - knows remaining health
- knows filled "rows" count (useful for
roll on will
to getmalus caused by wounds
) - knows
Treatment boundary
Wound
- has
Origin
- has size (expressed by number of
point of wound
) - has severity
- ordinary
- serious, which has detail about its origin, see
Wounds origin
, also serious wound is automatically considered asold injury
(seeTreatment boundary
)
Wounds origin
Mechanical wounds
- stab
- cut
- crush
Psychical wounds
- Ψ [ˈpsiː]
Elemental wounds
- ± fire
- ± air
- ± water
- ± earth
Treatment boundary
- splits wounds in
grid of wounds
into two parts- "old" injuries, which are those not healed by last treatment (native regeneration per day, or by a healer) and all serious injuries
- new injuries
Affliction (handicap caused by body or soul damage)
Knows its
- domain
- virulence
- source
- property
- dangerousness
- size
- elemental pertinence
- effect
- outbreak period
Affliction knows from what wound it comes from, but wound itself does not know all the afflictions it caused - it is one-way knowledge. But health knows all afflictions it is suffering now.
Affliction effect
- it just keeps the effect
- the Person itself is responsible to ask its Health for its AfflictionsByWounds for its AfflictionEffects and apply them on self