mirror of
https://github.com/prosolis/gogobee.git
synced 2026-07-16 08:52:42 +00:00
Add hospital revival, Robbie bandit, MW/shop fixes, float64 scoring
- St. Guildmore's Memorial Hospital: !hospital command with Nurse Joy, procedural itemized billing, same-day revival, 6-hour dead timer, hospital ad after death, 2-hour nudge follow-up - Robbie the Friendly Bandit: automated inventory cleaner, random daily visits (8-21 UTC, 40% chance), collects sub-tier gear at €50/item, donates to community pot, drops Get Out of Medical Debt Free card - Fix MW auto-equip: T1 MW no longer replaces better equipped gear - Fix shop MW block: allow purchasing upgrades over lower-tier MW - Float64 equipment scoring: advEffectiveTier and advEquipmentScore return float64, no mid-calculation truncation (MW 1.25x, Arena 1.5x) - Fix markdown rendering: convert *asterisk* to _underscore_ italics across all flavor text files (shop, blacksmith, rival, hospital) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -574,7 +574,7 @@ func (p *HangmanPlugin) startMultilingualGame(ctx MessageContext, lang, clueLang
|
||||
// Pick a word, optionally with a translatable clue
|
||||
var word, clueWord string
|
||||
for attempt := 0; attempt < 3; attempt++ {
|
||||
candidate, err := p.dict.RandomWord(lang, "", 4, 12)
|
||||
candidate, err := p.dict.RandomWord(lang, "", 4, 12, 0)
|
||||
if err != nil {
|
||||
slog.Error("hangman: random word failed", "lang", lang, "err", err)
|
||||
rollback()
|
||||
@@ -597,7 +597,7 @@ func (p *HangmanPlugin) startMultilingualGame(ctx MessageContext, lang, clueLang
|
||||
|
||||
if word == "" {
|
||||
// Fallback: start without a clue
|
||||
candidate, err := p.dict.RandomWord(lang, "", 4, 12)
|
||||
candidate, err := p.dict.RandomWord(lang, "", 4, 12, 0)
|
||||
if err != nil {
|
||||
rollback()
|
||||
return p.SendReply(ctx.RoomID, ctx.EventID, "❌ Dictionary service unavailable. Try again shortly.")
|
||||
|
||||
Reference in New Issue
Block a user