fetch static data from txt files and properly get all the item stats... maybe?
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user