Add terrain biomes jumping and extensible gathering professions
This commit is contained in:
@@ -30,6 +30,18 @@ func (w *World) AdminItems(c *Character, op, value string) error {
|
||||
}
|
||||
if op == "grant-item" {
|
||||
known := false
|
||||
if w.Balance.Gathering != nil {
|
||||
for _, r := range w.Balance.Gathering.Resources {
|
||||
if r.Output == "self" && r.ID == id {
|
||||
known = true
|
||||
}
|
||||
}
|
||||
for _, v := range w.Balance.Gathering.Consumables {
|
||||
if v.ID == id {
|
||||
known = true
|
||||
}
|
||||
}
|
||||
}
|
||||
for _, key := range []string{"axe", "flint_and_steel", "fishing_pole", "wood", "ore", "herb", "bandage"} {
|
||||
if key == id {
|
||||
known = true
|
||||
|
||||
Reference in New Issue
Block a user