mirror of
https://github.com/prosolis/gogobee.git
synced 2026-07-15 08:32:41 +00:00
Hospital: vary bill descriptor in discharge announcement
Replace the single "a lot" descriptor with a pool of 8 variants picked via advPickFlavor (per-user dedup, last 5 indices avoided). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -63,8 +63,22 @@ var nurseJoyAlreadyRevived = "You seem to have recovered on your own! " +
|
|||||||
|
|
||||||
// ── Room Announcements ───────────────────────────────────────────────────<E29480><E29480>─
|
// ── Room Announcements ───────────────────────────────────────────────────<E29480><E29480>─
|
||||||
|
|
||||||
var hospitalDischargeAnnounce = "🏥 %s has been discharged from St. Guildmore's Memorial Hospital. " +
|
// hospitalDischargeBillDescriptors are the variants used for the
|
||||||
"Recovered. Back in action. The bill has been described as \"a lot.\""
|
// "The bill has been described as ..." sentence in the discharge announcement.
|
||||||
|
// Some are bare adjectives ("devastating"); others are full quoted phrases.
|
||||||
|
var hospitalDischargeBillDescriptors = []string{
|
||||||
|
"\"a lot.\"",
|
||||||
|
"devastating.",
|
||||||
|
"ruinous.",
|
||||||
|
"soul-crushing.",
|
||||||
|
"\"proof that someone, somewhere, hates me specifically.\"",
|
||||||
|
"\"tearing to shreds what little hope I had left for humanity.\"",
|
||||||
|
"\"what I imagine my greatest enemies would charge me.\"",
|
||||||
|
"\"enough to make me reconsider the whole 'surviving' part.\"",
|
||||||
|
}
|
||||||
|
|
||||||
|
var hospitalDischargeAnnouncePrefix = "🏥 %s has been discharged from St. Guildmore's Memorial Hospital. " +
|
||||||
|
"Recovered. Back in action. The bill has been described as %s"
|
||||||
|
|
||||||
var hospitalDitchAnnounce = "🏥 %s was brought into St. Guildmore's on a stretcher. " +
|
var hospitalDitchAnnounce = "🏥 %s was brought into St. Guildmore's on a stretcher. " +
|
||||||
"They have been returned to the ditch. They'll be fine tomorrow."
|
"They have been returned to the ditch. They'll be fine tomorrow."
|
||||||
|
|||||||
@@ -230,7 +230,8 @@ func (p *AdventurePlugin) resolveHospitalPay(ctx MessageContext, interaction *ad
|
|||||||
gr := gamesRoom()
|
gr := gamesRoom()
|
||||||
if gr != "" {
|
if gr != "" {
|
||||||
name, _ := loadDisplayName(char.UserID)
|
name, _ := loadDisplayName(char.UserID)
|
||||||
p.SendMessage(gr, fmt.Sprintf(hospitalDischargeAnnounce, name))
|
descriptor, _ := advPickFlavor(hospitalDischargeBillDescriptors, ctx.Sender, "hospital_discharge_bill")
|
||||||
|
p.SendMessage(gr, fmt.Sprintf(hospitalDischargeAnnouncePrefix, name, descriptor))
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|||||||
Reference in New Issue
Block a user