mirror of
https://github.com/prosolis/gogobee.git
synced 2026-07-16 00:52:40 +00:00
Adv 2.0 L4a: hospital migrates HospitalVisits + cost formula off AdvCharacter
player_meta.hospital_visits column added with idempotent backfill. Hospital cost now DnDCharacter.Level x 50k (5x before insurance), falling back to dndLevelFromCombatLevel when no D&D row exists. Revive paths also restore DnDCharacter HP to full; char.Alive still dual-writes during soak. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -199,6 +199,11 @@ func (p *AdventurePlugin) Init() error {
|
||||
if err := backfillPlayerMetaDisplayName(); err != nil {
|
||||
slog.Error("player_meta: display_name backfill failed", "err", err)
|
||||
}
|
||||
// Adv 2.0 Phase L4a — one-shot HospitalVisits backfill into
|
||||
// player_meta. Idempotent (only fills zero rows).
|
||||
if err := backfillPlayerMetaHospitalVisits(); err != nil {
|
||||
slog.Error("player_meta: hospital_visits backfill failed", "err", err)
|
||||
}
|
||||
// Phase L3 — cancel any open/active legacy coop dungeon runs and
|
||||
// refund member contributions + unsettled bets. Idempotent.
|
||||
closeAndRefundLegacyCoopRuns(p.euro)
|
||||
|
||||
Reference in New Issue
Block a user