forked from MagicBane/Server
Unnecessary cast
This commit is contained in:
@@ -398,9 +398,9 @@ public class WpakPowerManager {
|
||||
|
||||
public static float getCost(Power power, int trains) {
|
||||
if (power.curves.get("COSTAMT") != null)
|
||||
return power.cost + (float) (power.curves.get("COSTAMT").getValue() * trains);
|
||||
return power.cost + (power.curves.get("COSTAMT").getValue() * trains);
|
||||
else
|
||||
return power.cost * (1 + (float) (power.curves.get("COSTAMT").getValue() * trains));
|
||||
return power.cost * (1 + (power.curves.get("COSTAMT").getValue() * trains));
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user