Skip to content

Commit

Permalink
すでに入っているnhpの値を使わないとダメでしょうが
Browse files Browse the repository at this point in the history
  • Loading branch information
mohemohe committed Nov 10, 2020
1 parent cb2b31c commit 8de195e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions go.mod
Expand Up @@ -3,6 +3,6 @@ module github.com/lxbot/script-socialquest
go 1.13

require (
github.com/k-lee9575/mt19937 v0.0.0-20190619072559-465d249f04fd // indirect
github.com/mohemohe/temple v0.0.0-20181219075821-e9171fa8e0d7 // indirect
github.com/k-lee9575/mt19937 v0.0.0-20190619072559-465d249f04fd
github.com/mohemohe/temple v0.0.0-20181219075821-e9171fa8e0d7
)
2 changes: 1 addition & 1 deletion script.go
Expand Up @@ -327,7 +327,7 @@ func handleSocial(msg M) {
心ioの気持ちになってsend(msg, "宿屋で"+strconv.Itoa(days)+"日休みました。 残りHP: "+strconv.Itoa(c.HP)+"/"+strconv.Itoa(maxHP)+" -> "+strconv.Itoa(nhp)+"/"+strconv.Itoa(maxHP))
}

nhp = c.HP - d
nhp -= d

update(p, S{
Enable: true,
Expand Down

0 comments on commit 8de195e

Please sign in to comment.