feat(bridge): a zone's ZoneManager options, its messages, and a ZoneDomes dome (PLAN_REDESIGNS §3) #21

Merged
whitlocktech merged 2 commits from feat/zones-domes into edge 2026-09-29 11:28:52 -05:00
Showing only changes of commit b30c6edd59 - Show all commits

View File

@@ -8411,7 +8411,9 @@ namespace Oxide.Plugins
}
Newtonsoft.Json.Linq.JToken t = d["type"], s = d["stack"];
domeType = t != null && t.Type == Newtonsoft.Json.Linq.JTokenType.Integer ? (int)t : -1;
// No type is Standard, the one full dome; the colours show only where they meet
// the ground (D212).
domeType = t == null ? 0 : t.Type == Newtonsoft.Json.Linq.JTokenType.Integer ? (int)t : -1;
domeStack = s == null ? 1 : s.Type == Newtonsoft.Json.Linq.JTokenType.Integer ? (int)s : -1;
if (domeType < 0 || domeType > DomeTypeMax || domeStack < 1 || domeStack > DomeStackMax)