summaryrefslogtreecommitdiffstats
path: root/wat/db.go
diff options
context:
space:
mode:
authoralex2018-12-03 23:21:11 +0000
committeralex2018-12-03 23:21:11 +0000
commitca91956e27ab31b5cef5af4927fe37b0671ce092 (patch)
treef8ff3f5af4748dd940d08c2404ea4dca6b80e751 /wat/db.go
parent88d612e041691268d97ab1ae01a2c1d8c7db5fe7 (diff)
downloadwatbot-ca91956e27ab31b5cef5af4927fe37b0671ce092.tar.gz
watbot-ca91956e27ab31b5cef5af4927fe37b0671ce092.tar.bz2
watbot-ca91956e27ab31b5cef5af4927fe37b0671ce092.zip
int64 -> uint64 for coins, disable noisy logging, turned off wattery (it was quickly abused), made anarchy less likely to win and time limited
Diffstat (limited to 'wat/db.go')
-rw-r--r--wat/db.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/wat/db.go b/wat/db.go
index 53876c3..5f80af4 100644
--- a/wat/db.go
+++ b/wat/db.go
@@ -20,6 +20,7 @@ type Player struct {
LastMined int64
LastRested int64
CoinsLost uint64
+ Bankrupcy int64 // how many times someone has been bankrupt
}
type Action struct {
@@ -78,7 +79,7 @@ func (w *WatDb) User(nick, host string, create bool) Player {
func (w *WatDb) Update(upd ...interface{}) {
for _, u := range upd {
- fmt.Printf("Updating %+v\n", u)
+ //fmt.Printf("Updating %+v\n", u)
w.db.Save(u)
}
}