Fixed #11320
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user