diff options
Diffstat (limited to 'internal/behavior')
| -rw-r--r-- | internal/behavior/types.go | 14 |
1 files changed, 11 insertions, 3 deletions
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 |
