Add ranged combat area effects and admin-authored mobs

This commit is contained in:
dingo
2026-09-09 05:26:31 -04:00
parent 7a4c6c9e9b
commit 0b4eaa153c
29 changed files with 2220 additions and 181 deletions
+5
View File
@@ -101,6 +101,11 @@ func (h *HTTP) portalRoutes(mux *http.ServeMux) {
return
}
switch req.Op {
case "spawn-mobs":
if _, _, _, err := game.ParseMobSpawn(req.Value); err != nil {
fail(w, 400, err.Error())
return
}
case "grant-item", "remove-item":
if _, _, err := game.ParseItemChange(req.Value); err != nil {
fail(w, 400, err.Error())