fetch static data from txt files and properly get all the item stats... maybe?

This commit is contained in:
Héctor Giménez
2024-05-08 21:31:40 +09:00
parent c03c40d385
commit aa2a1aaeb3
34 changed files with 3539 additions and 96663 deletions

View File

@@ -4,8 +4,7 @@ type ID int
type Area struct {
ID
Name string
CanBeTerrorized bool
Name string
}
func (a ID) IsTown() bool {
@@ -17,6 +16,12 @@ func (a ID) IsTown() bool {
return false
}
func (a ID) CanBeTerrorized() bool {
_, canBeTerrorized := CanBeTerrorized[a]
return canBeTerrorized
}
func (a ID) Act() int {
if a < 40 {
return 1