Crawl progress

This commit is contained in:
Anuken
2021-08-22 20:25:46 -04:00
parent 5e737510a3
commit dd8279bab3
7 changed files with 6 additions and 6 deletions

View File

@@ -2410,7 +2410,7 @@ public class UnitTypes implements ContentList{
scuttler = new UnitType("scuttler"){{
outlineColor = Pal.neoplasmOutline;
hitSize = 40f;
hitSize = 48f;
omniMovement = false;
rotateSpeed = 1.7f;
drownTimeMultiplier = 4f;

View File

@@ -65,7 +65,7 @@ abstract class CrawlComp implements Posc, Rotc, Hitboxc, Unitc{
if(moving()){
segmentRot = Angles.moveToward(segmentRot, rotation, type.segmentRotSpeed);
int radius = (int)Math.max(0, hitSize / tilesize);
int radius = (int)Math.max(0, hitSize / tilesize * 2f);
int count = 0, solids = 0, deeps = 0;
lastDeepFloor = null;
@@ -91,7 +91,7 @@ abstract class CrawlComp implements Posc, Rotc, Hitboxc, Unitc{
t.build.damage(team, type.crawlDamage * Time.delta);
}
if(Mathf.chanceDelta(0.04)){
if(Mathf.chanceDelta(0.025)){
Fx.crawlDust.at(t.worldx(), t.worldy(), t.floor().mapColor);
}
}else{

View File

@@ -696,7 +696,7 @@ public class UnitType extends UnlockableContent{
public void drawShadow(Unit unit){
Draw.color(Pal.shadow);
float e = Math.max(unit.elevation, visualElevation);
float e = Math.max(unit.elevation, visualElevation) * (1f - unit.drownTime);
Draw.rect(shadowRegion, unit.x + shadowTX * e, unit.y + shadowTY * e, unit.rotation - 90);
Draw.color();
}
@@ -907,7 +907,7 @@ public class UnitType extends UnlockableContent{
applyColor(unit);
//change to 2 TODO
for(int p = 0; p < 1; p++){
for(int p = 0; p < 2; p++){
TextureRegion[] regions = p == 0 ? segmentOutlineRegions : segmentRegions;
for(int i = 0; i < segments; i++){
@@ -920,7 +920,7 @@ public class UnitType extends UnlockableContent{
//shadow
Draw.color(0f, 0f, 0f, 0.2f);
Draw.rect(regions[i], unit.x + tx + 2f, unit.y + ty - 2f, rot - 90);
//Draw.rect(regions[i], unit.x + tx + 2f, unit.y + ty - 2f, rot - 90);
applyColor(unit);