Made setStats accept an object instead of using an instance field

This commit is contained in:
Anuken
2026-09-21 15:48:14 -04:00
parent 318ca1cc8e
commit 8396d5c9fa
82 changed files with 167 additions and 189 deletions
-6
View File
@@ -173,9 +173,6 @@ public class PatcherTests{
@Test
void unitWeapons() throws Exception{
UnitTypes.dagger.stats.add(Stat.charge, 999);
assertNotNull(UnitTypes.dagger.stats.toMap().get(StatCat.general).get(Stat.charge));
apply("""
unit.dagger.weapons.+: {
name: navanax-weapon
@@ -193,9 +190,6 @@ public class PatcherTests{
assertEquals(999, UnitTypes.dagger.weapons.get(2).bullet.lightningLength);
Vars.logic.reset();
UnitTypes.dagger.computeStats();
assertNull(UnitTypes.dagger.stats.toMap().get(StatCat.general).get(Stat.charge));
}
@Test