Creature personality: favourite rooms, hatreds and brawls, abilities learned with the level

- every kind loves one room (working there lifts the mood) and cannot stand certain other kinds; close by they sour each other's mood and now and then brawl (they stop at 30% health)
- learned abilities: imps dig faster, kobold dash, spider web, mage shadow step, ogre stomp, jailer shackle, priestess healing pulse, chainbreaker whirlwind, bat shriek, gargoyle stone form, owl volley, wyrm inferno, cogling bomb
- bestiary lists likes, hatreds and the ability (highlighted from its level on)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Richard ZinkandClaude Opus 5.5 committed 2026-11-04 07:25:47 +01:00
1 parent 240e89d9cb
commit 2c8db33a69
7 files changed
+403 -4

No files matched your search

+1
View File
@@ -238,6 +238,7 @@ impl Game {
// running spell effects on a unit (called every frame)
pub(crate) fn tick_effects(&mut self, e: &mut Ent, dt: f32) {
e.haste = (e.haste - dt).max(0.0);
e.ab_cd = (e.ab_cd - dt).max(0.0);
e.shield = (e.shield - dt).max(0.0);
e.invis = (e.invis - dt).max(0.0);
if e.plague > 0.0 {