Item refactor and more (#1)

This commit is contained in:
Héctor Giménez
2023-08-18 22:33:54 +09:00
committed by GitHub
parent 9a3b131826
commit 1c8aab1580
13 changed files with 213 additions and 64 deletions

View File

@@ -11,6 +11,23 @@ func (a Area) IsTown() bool {
return false
}
func (a Area) Act() int {
if a < 40 {
return 1
}
if a >= 40 && a < 75 {
return 2
}
if a >= 75 && a < 103 {
return 3
}
if a >= 103 && a < 109 {
return 4
}
return 5
}
const (
Abaddon Area = 125
AncientTunnels Area = 65