core(fix): Fixes type aliasing, categorizations, and NPE (#444)

- [X] Fixes lookup of type aliases
- [X] Fixes categorization
- [X] Removes rebuild categorizations
- [X] Fixes an NPE with DoHarmful and Combatant

Closes #441
This commit is contained in:
Kamron Batman 2021-02-03 16:14:04 -08:00 • committed by GitHub
parent 24ebdd0f90
commit 5d9ebf062f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 3821 additions and 4881 deletions

View file

@ -21,12 +21,15 @@ namespace Server.Commands
{
public class CAGObject : CAGNode
{
[JsonPropertyName("type")] public Type Type { get; set; }
[JsonPropertyName("gfx")] public int ItemID { get; set; }
[JsonPropertyName("type")]
public Type Type { get; set; }
#nullable enable
[JsonPropertyName("hue")] public int? Hue { get; set; }
[JsonPropertyName("gfx")]
public int? ItemID { get; set; }
[JsonPropertyName("hue")]
public int? Hue { get; set; }
#nullable disable
public CAGCategory Parent { get; set; }