mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-10-02 11:10:50 +03:00
Made setStats accept an object instead of using an instance field
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user