BuildVisibility non-enum / Canvas is now shown

This commit is contained in:
Anuken
2022-09-23 12:27:44 -04:00
parent 710fd3484f
commit 8b9cbc2c7c
6 changed files with 36 additions and 15 deletions

View File

@@ -63,6 +63,10 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
}
public void updateBoosting(boolean boost){
elevation = Mathf.approachDelta(elevation, type.canBoost ? Mathf.num(boost || onSolid() || (isFlying() && !canLand())) : 0f, type.riseSpeed);
}
/** Move based on preferred unit movement type. */
public void movePref(Vec2 movement){
if(type.omniMovement){