This commit is contained in:
Anuken
2025-10-29 10:33:49 -04:00
parent ecd10623fe
commit 04bc7b1f22
4 changed files with 46 additions and 20 deletions

View File

@@ -165,6 +165,20 @@ public class PatcherTests{
assertEquals(0, UnitTypes.dagger.abilities.size);
}
@Test
void testUnitTypeObject() throws Exception{
Vars.state.patcher.apply(Seq.with("""
{
"name": "object syntax",
"unit.dagger": {
"type": "legs"
}
}
"""));
assertEquals(new Seq<>(), Vars.state.patcher.patches.first().warnings);
}
@Test
void testUnitFlagsArray() throws Exception{
int oldLength = UnitTypes.dagger.targetFlags.length;