Added addUpgrade method to Reconstructor to avoid dealing with array creation in Rhino JS (#5094)

This commit is contained in:
Drullkus 2021-04-10 18:28:28 -07:00 committed by GitHub
parent c99b79762a
commit aef7709764
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,6 +97,10 @@ public class Reconstructor extends UnitBlock{
super.init();
}
public void addUpgrade(UnitType from, UnitType to){
upgrades.add(new UnitType[]{from, to});
}
public class ReconstructorBuild extends UnitBuild{
public float fraction(){