nm
This commit is contained in:
parent
db4c1257b9
commit
ecb988a3d9
@ -267,6 +267,8 @@ func (g *WatGame) Leech(player *Player, fields []string) string {
|
|||||||
player.Health += hpDown
|
player.Health += hpDown
|
||||||
player.Anarchy += 1
|
player.Anarchy += 1
|
||||||
reply += fmt.Sprintf("The deal is done, you took %d HP from %s. They now have %d HP, you have %d.", hpDown, target.Nick, target.Health, player.Health)
|
reply += fmt.Sprintf("The deal is done, you took %d HP from %s. They now have %d HP, you have %d.", hpDown, target.Nick, target.Health, player.Health)
|
||||||
|
g.db.Update(target)
|
||||||
|
g.db.Update(player)
|
||||||
} else {
|
} else {
|
||||||
reply += "The gods do not smile upon you this waturday. Your money vanishes and nothing happens."
|
reply += "The gods do not smile upon you this waturday. Your money vanishes and nothing happens."
|
||||||
}
|
}
|
||||||
@ -323,12 +325,12 @@ func (g *WatGame) Send(player *Player, fields []string) string {
|
|||||||
|
|
||||||
func (g *WatGame) Mine(player *Player, _ []string) string {
|
func (g *WatGame) Mine(player *Player, _ []string) string {
|
||||||
delta := time.Now().Unix() - player.LastMined
|
delta := time.Now().Unix() - player.LastMined
|
||||||
if delta < 1800 {
|
if delta < 600 {
|
||||||
return fmt.Sprintf("wat? 2 soon. u earn more when u wait long (%d)", delta)
|
return fmt.Sprintf("wat? 2 soon. u earn more when u wait long (%d)", delta)
|
||||||
}
|
}
|
||||||
value := int64(0)
|
value := int64(0)
|
||||||
if delta < 36000 {
|
if delta < 36000 {
|
||||||
value = delta/1800
|
value = delta/600
|
||||||
} else if delta < 86400 {
|
} else if delta < 86400 {
|
||||||
value = 10
|
value = 10
|
||||||
} else if delta < 2592000 {
|
} else if delta < 2592000 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user