feat(xp): implements xp reducer
This commit is contained in:
parent
9de1f3f90b
commit
0a6ecf6af7
4 changed files with 18 additions and 8 deletions
|
@ -43,7 +43,7 @@ func onNewLevel(s *discordgo.Session, m *discordgo.Member, level uint) {
|
|||
}
|
||||
}
|
||||
|
||||
func onLastEventUpdate(c *Copaing) {
|
||||
func LastEventUpdate(c *Copaing) {
|
||||
h := c.HourSinceLastEvent()
|
||||
l := Lose(h, c.XP)
|
||||
xp := c.XPAlreadyRemoved()
|
||||
|
@ -57,7 +57,7 @@ func onLastEventUpdate(c *Copaing) {
|
|||
c.SetLastEvent()
|
||||
}
|
||||
|
||||
func onXPUpdate(c *Copaing) {
|
||||
func XPUpdate(c *Copaing) {
|
||||
h := c.HourSinceLastEvent()
|
||||
l := Lose(h, c.XP)
|
||||
xp := c.XPAlreadyRemoved()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue