Add spells, weapon abilities, and durable corpse resurrection
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package game
|
||||
|
||||
import (
|
||||
"aeternalis/server/content"
|
||||
p "aeternalis/server/internal/protocol"
|
||||
"errors"
|
||||
"strconv"
|
||||
@@ -30,6 +31,11 @@ func (w *World) AdminItems(c *Character, op, value string) error {
|
||||
}
|
||||
if op == "grant-item" {
|
||||
known := false
|
||||
for key := range (content.Catalog{Powers: w.Balance.Powers}).PowerItems() {
|
||||
if key == id {
|
||||
known = true
|
||||
}
|
||||
}
|
||||
if w.Balance.Gathering != nil {
|
||||
for _, r := range w.Balance.Gathering.Resources {
|
||||
if r.Output == "self" && r.ID == id {
|
||||
|
||||
Reference in New Issue
Block a user