Make craters affected by overdrive projectors
This commit is contained in:
@@ -25,7 +25,7 @@ public class UnitTypes implements ContentList{
|
|||||||
mass = 0.5f;
|
mass = 0.5f;
|
||||||
health = 50;
|
health = 50;
|
||||||
rotatespeed = 0.1f;
|
rotatespeed = 0.1f;
|
||||||
itemCapacity = 10;
|
itemCapacity = 16;
|
||||||
weapon = new Weapon(){{
|
weapon = new Weapon(){{
|
||||||
length = 1.5f;
|
length = 1.5f;
|
||||||
reload = 28f;
|
reload = 28f;
|
||||||
|
|||||||
@@ -119,4 +119,18 @@ public class CraterUnit extends GroundUnit{
|
|||||||
public boolean loading(){
|
public boolean loading(){
|
||||||
return state.is(load);
|
return state.is(load);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Since normal conveyors get faster when boosted,
|
||||||
|
* this piece of code changes their capacity,
|
||||||
|
* make sure capacity is dividable by 4,
|
||||||
|
* for the best user experience.
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public int getItemCapacity(){
|
||||||
|
|
||||||
|
if(on() == null || on().entity == null) return type.itemCapacity;
|
||||||
|
|
||||||
|
return Mathf.round(type.itemCapacity * on().entity.timeScale);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user