From 94823b52168b44894fb5e9c960358ed02ebb122b Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Sun, 5 Jul 2026 22:35:21 -0400 Subject: feat: courses gui overhaul, add course tab to map, add hidden exits to give courses structure --- internal/behavior/types.go | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'internal/behavior') diff --git a/internal/behavior/types.go b/internal/behavior/types.go index 99f09a0..03876e5 100644 --- a/internal/behavior/types.go +++ b/internal/behavior/types.go @@ -145,14 +145,22 @@ type ObstacleData struct { StartRoom int ObstacleXP int CompletionXP int - FailChance float64 + // FailChance is the resolved failure probability for this attempt. + // nil => derived at runtime from agility level vs RequiredLevel. + FailChance *float64 FailDamageMin int FailDamageMax int - Messages []any - TicksPerPhase float64 + Phases []PhaseData RequiredLevel int } +// PhaseData is the runtime form of an obstacle phase. +type PhaseData struct { + Message string + Delay float64 + FailCheck bool +} + type FarmData struct { Prefix string SeedID string -- cgit v1.2.3