Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,17 @@ The player-facing command set is intentionally melee-focused.
| Key | Action |
| --- | --- |
| `h` `j` `k` `l` | move west / south / north / east |
| `.` | wait / rest |
| `.` | wait one turn |
| arrows | move (or move the cursor in look/throw mode) |
| `f` + `h/j/k/l` | bash an adjacent small obstacle |
| `a` | use the Hands item / report the weapon ready |
| `c` `d` `r` | use, swap or consume Belt 1–3 |
| `A` `B` `C` `D` `R` | drop Hands, Body, Belt 1–3 |
| `r` / `t` | use the first / second known Rite |
| `A` `H` `C` `D` `R` | drop Hands, Head, Robe 1–3 |
| `g` | get the item from the ground |
| `e` | equipment overlay |
| `v` | view / look around |
| `~` | expand/collapse latest messages |
| `@` | character information |
| `x` | skill levels |
| `O` | options |
| `?` | help / key bindings |
| `S` | save and quit |
Expand All @@ -58,21 +57,22 @@ Walking into a monster attacks it. Bashing is intentional: use `f` and a
direction. A bash takes a turn, and some containers such as barrels or crates
may drop supplies when smashed.

Screens generally close with `z`, `q`, `Space`, or `Esc`. The player is defenceless
without a melee weapon; there is no unarmed attack. Throwing is deferred for
now.
Screens generally close with `z`, `q`, `Space`, or `Esc`. The player is
defenceless without a melee weapon; there is no unarmed attack. Flask throwing
is deferred for now.

The player has five equipment slots: Hands, Body, Belt 1–3. Body armour is
worn passively and removed/dropped with `B`. Belt 2 and 3 unlock at levels 3
and 6.
The priest has Hands, Head and a permanently worn Robe with three slots. Robe
slots hold vials, shards or small items. Shards provide all AP and break when
drained. The first slice starts with one random Rite; the planned shrine that
grants a second Rite is not implemented yet.

## Screens

* title, intro story, class selection
* title, generated priest intro and random Rite
* compact 80×23 woods map view with unlimited-radius FOV, line-of-sight blockers and remembered terrain
* message log and message-buffer screen
* inventory, equipment and ground-item screen with item data
* character sheet, skill-level screen, options screen, key-binding screen
* character sheet, equipment/robe screen, options screen, key-binding screen
* look mode with tile highlighting
* save/load, death and victory screens

Expand Down Expand Up @@ -104,15 +104,15 @@ and 6.
* melee combat with recovered weapon AV/DV and damage values
* throwing is deferred; HE grenade and molotov data are retained for a future pass
* recovered weapon table (attack/defense value and damage range per subtype)
* five survivor classes with distinct attributes, skills and starting kits
* HP and AP: body armour provides a depletable armour-point pool
* armour vials restore AP from belt slots; acid bypasses AP
* one priest character with a randomly generated name and starting Rite
* HP and AP: equipped robe shards provide a depletable armour-point pool
* shards drain in slot order, break at 0 AP and can be replaced; acid bypasses AP
* blood, corpses and limbs
* five player slots: Hands, Body and three belt slots; two belt slots start unlocked
* one-line HUD with HP/AP and the ready weapon; one-line message bar
* Hands, Head and a permanently worn Robe with three starting slots
* one-line HUD with HP/AP, the ready weapon and Rite charges; one-line message bar
* `~` expands the latest eight messages; `e` opens a non-scrolling equipment overlay
* one item maximum per ground tile; dropping onto an occupied tile is refused
* skills, skill checks, experience, levels and free skill points
* experience is stored for now; player levels and skill points are removed
* auto-opening doors, portals, bashing, acid/fire/smoke, rain
* options screen wired to the gameplay (AI, doors, god/ghost mode, …)
* JSON save/load for the current development format; older saves may break
Expand Down
2 changes: 1 addition & 1 deletion documentation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ postponed.
| Player experience adjustments (classes, intro, HUD, viewport) | Done | [systems/player-experience-adjustments.md](plans/systems/player-experience-adjustments.md) |
| Cardinal movement (remove diagonals, unified hjkl controls) | Done | [systems/cardinal-movement.md](plans/systems/cardinal-movement.md) |
| Monster AI and cardinal pathfinding | Done | [systems/monster-ai-pathfinding.md](plans/systems/monster-ai-pathfinding.md) |
| Priest player revamp (random rites, robe slots, holy gear; demon end-game deferred) | Proposed | [systems/priest-player-revamp.md](plans/systems/priest-player-revamp.md) |
| Priest player revamp (random rites, robe slots, holy gear; demon end-game deferred) | In progress | [systems/priest-player-revamp.md](plans/systems/priest-player-revamp.md) |
| Player and monster states (bleeding, burning, poison, fear, etc.) | Not planned yet | [systems/player-monster-states.md](plans/systems/player-monster-states.md) |
| Caves levels 9–17 | Not planned yet | [plans/caves.md](plans/caves.md) |
| Temple of the Underminer levels 18–26 | Not planned yet | [plans/temple.md](plans/temple.md) |
Expand Down
2 changes: 1 addition & 1 deletion documentation/plans/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ revamp plans are written.
| Player experience adjustments — classes, intro, one-line HUD, 80×25 layout | Done | [systems/player-experience-adjustments.md](systems/player-experience-adjustments.md) |
| Cardinal movement — remove diagonals, unified hjkl controls | Done | [systems/cardinal-movement.md](systems/cardinal-movement.md) |
| Monster AI and cardinal pathfinding | Done | [systems/monster-ai-pathfinding.md](systems/monster-ai-pathfinding.md) |
| Priest player revamp — random rites, robe slots, holy gear, zombie variants; demon end-game separate | Proposed | [systems/priest-player-revamp.md](systems/priest-player-revamp.md) |
| Priest player revamp — random rites, robe slots, holy gear, zombie variants; demon end-game separate | In progress | [systems/priest-player-revamp.md](systems/priest-player-revamp.md) |
| Player and monster states — bleeding, burning, poison, fear, immobilize | Not planned yet | [systems/player-monster-states.md](systems/player-monster-states.md) |

The woods plan intentionally includes the first pass of:
Expand Down
53 changes: 30 additions & 23 deletions documentation/plans/systems/priest-player-revamp.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Priest Player Revamp — Random Rite, Robe Slots and Holy Gear

Status: **proposed**
Status: **in progress**
Parent: [Feature plans](../README.md)
Related: [Player redesign](player-redesign.md), [Player experience adjustments](player-experience-adjustments.md), [Woods minimalist snake redesign](../woods/minimalist-snake-redesign.md), [Player and monster states](player-monster-states.md)
Scope: player identity, one random starting rite plus one shrine rite, intro, robe/head/slot equipment, priest-themed items and zombie/villager variants.
Expand All @@ -15,6 +15,13 @@ A separate end-game plan will cover the demon finale and the stone-circle map.
Player and monster states such as bleeding will also get a separate plan. Neither
is part of this revamp.

Implementation status: the first slice is implemented — no class selection,
priest/rite generation, development reroll, Hands/Head/Robe slots, vials and
shards with sequential breakage, no baseline auto-healing, XP stored without
levels and HUD rite charges. The shrine/second rite, flasks, head-item effects,
robe-slot upgrades, villager variants, states and demon end-game remain for
later slices.

---

## 1. Goals
Expand Down Expand Up @@ -406,36 +413,36 @@ These are ideas, not locked decisions:

## 13. Acceptance criteria

- [ ] There is no class-selection screen.
- [ ] The player is always a priest with a randomly generated name.
- [ ] Perks and numeric skill values are removed.
- [ ] The priest starts with exactly one random Rite.
- [x] There is no class-selection screen.
- [x] The player is always a priest with a randomly generated name.
- [x] Perks and numeric skill values are removed.
- [x] The priest starts with exactly one random Rite.
- [ ] A single shrine per run grants exactly one additional random Rite.
- [ ] Each Rite has one charge per map, refreshed on entry.
- [ ] The HUD shows the available Rite and its remaining charge.
- [ ] The intro is generated from the assigned Rite and starting kit.
- [ ] Hidden `r` rerolls everything during development.
- [ ] STR/TGH/AGI/INT and player-facing levels are removed.
- [ ] XP is still stored but does not grant levels yet.
- [ ] There is no baseline automatic healing.
- [x] Each Rite has one charge per map, refreshed on entry.
- [x] The HUD shows the available Rite and its remaining charge.
- [x] The intro is generated from the assigned Rite and starting kit.
- [x] Hidden `r` rerolls everything during development.
- [x] STR/TGH/AGI/INT and player-facing levels are removed.
- [x] XP is still stored but does not grant levels yet.
- [x] There is no baseline automatic healing.
- [ ] Any later regeneration must be a Rite, relic or separate progression
decision, not a perk.
- [ ] Equipment is limited to Hands, Head and the permanently worn Robe.
- [x] Equipment is limited to Hands, Head and the permanently worn Robe.
- [ ] The robe starts with three slots and can gain more during the adventure.
- [ ] Each robe slot holds exactly one vial, flask, shard or small item.
- [ ] Vials restore a small flat amount of HP.
- [x] Each robe slot holds exactly one vial, flask, shard or small item.
- [x] Vials restore a small flat amount of HP.
- [ ] Flasks are throwable and occupy one slot.
- [ ] Shards provide different maximum AP values.
- [ ] Damage drains shards in order; a shard at 0 AP breaks and frees its slot.
- [ ] Excess shard damage carries to the next shard and then HP.
- [ ] Drained shards are not repaired and can be replaced.
- [ ] Every starting item fits the priest theme.
- [x] Shards provide different maximum AP values.
- [x] Damage drains shards in order; a shard at 0 AP breaks and frees its slot.
- [x] Excess shard damage carries to the next shard and then HP.
- [x] Drained shards are not repaired and can be replaced.
- [x] Every starting item fits the priest theme.
- [ ] Living peasants, militia, runners and thugs have matching zombie versions.
- [ ] Zombie kills convert the matching villager type.
- [ ] The game remains readable at 80×25.
- [ ] The Meteor Field remains the final woods map until the separate demon
- [x] The game remains readable at 80×25.
- [x] The Meteor Field remains the final woods map until the separate demon
end-game plan is implemented.
- [ ] Bleeding and other player/monster states are deferred to their separate plan.
- [x] Bleeding and other player/monster states are deferred to their separate plan.

## 14. Open questions

Expand Down
11 changes: 3 additions & 8 deletions internal/game/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,11 @@ func (g *Game) EndPlayerTurn() {
}
}
}
if g.Turn%10 == 0 && g.Player.IsAlive() {
heal := 1 + g.Player.Skill(SkillMetabolism)/25
g.Player.HP += heal
if g.Player.HP > g.Player.MaxHP {
g.Player.HP = g.Player.MaxHP
}
g.Player.Blood = max(0, g.Player.Blood-1)
}
g.updateWeather()
g.UpdateMonsters()
if g.PeaceTurns > 0 {
g.PeaceTurns--
}
g.decayTileEffects()
g.UpdateFOV()
if !g.Player.IsAlive() {
Expand Down
20 changes: 20 additions & 0 deletions internal/game/ai.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,26 @@ func (g *Game) MonsterTurn(c *Critter) {
c.Path = nil
c.Stuck = 0
}
if c.Align == AlignEnemy {
if c.Immobile > 0 {
c.Immobile--
return
}
if c.Flee > 0 {
c.Flee--
if g.Player != nil && g.Player.IsAlive() {
g.stepAway(c, g.Player.X, g.Player.Y)
}
return
}
if g.PeaceTurns > 0 {
if g.Roll(100) < 80 {
return
}
g.wander(c)
return
}
}
switch c.AI {
case AIObserver:
p := g.Player
Expand Down
5 changes: 3 additions & 2 deletions internal/game/combat.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ func (g *Game) DamageCritter(target *Critter, dmg int, source *Critter, dtype in
return
}
if target.Player {
// AP absorbs a percentage of non-acid damage. Acid bypasses armour.
// Legacy body armour is kept only for old saves. New games use shards.
if dtype != 2 {
if arm := target.Slots.Body; arm != nil {
if stats, ok := ArmorStatsFor(arm.Def()); ok {
Expand All @@ -233,6 +233,8 @@ func (g *Game) DamageCritter(target *Critter, dmg int, source *Critter, dtype in
}
}
}
} else {
dmg = g.damagePlayerShards(dmg)
}
}
} else if arm := target.Equip[EquipArmor]; arm != nil {
Expand Down Expand Up @@ -293,7 +295,6 @@ func (g *Game) KillCritter(target, killer *Critter) {
xp := target.XP
g.Player.XP += xp
g.Msg(fmt.Sprintf("you gain %d experience points.", xp), 10)
g.CheckLevelUp()
}
if target.Align == AlignVillager && killer != nil && killer.Align == AlignEnemy && killer.Class == 1 {
g.PendingRises = append(g.PendingRises, PendingRise{X: target.X, Y: target.Y, Turns: 1 + g.Roll(3)})
Expand Down
Loading
Loading