mirror of
https://github.com/prosolis/gogobee.git
synced 2026-09-14 10:51:09 +00:00
Add version system, tax tracking, lottery winner DMs, fmtEuro, audit fixes
- Version system: per-plugin versions via Versioned interface, crash_log and version_history DB tables, !version command, crash stats in !botinfo - Tax tracking: tax_ledger table, trackTaxPaid across all communityTax and communityPotAdd sites, tax paid display in !stats and !superstatsexplusalpha - Lottery: DM winners with winning ticket details and matched numbers bolded - fmtEuro: generic currency formatter with thousand separators across all economy display paths - Audit fixes: streak_decayed column for Streak Survivor achievement, combat_narrative empty-phase guard, crafting success rate integer division, RecordCrash nil-DB guard Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
42e6e23900
commit
b15c13cde7
@@ -289,7 +289,8 @@ func (p *AdventurePlugin) distributeTwinBeeRewards(result *TwinBeeResult) TwinBe
|
||||
if share < 1 {
|
||||
share = 1
|
||||
}
|
||||
p.euro.Credit(ep.uid, float64(share), "twinbee_daily_share")
|
||||
net, _ := communityTax(ep.uid, float64(share), 0.05)
|
||||
p.euro.Credit(ep.uid, net, "twinbee_daily_share")
|
||||
totalDistributed += share
|
||||
if rollTwinBeeGift(ep.uid) {
|
||||
summary.GiftCount++
|
||||
|
||||
Reference in New Issue
Block a user