Added addUpgrade method to Reconstructor to avoid dealing with array creation in Rhino JS (#5094)
This commit is contained in:
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user