Duo range buff + graphite ammo buff

This commit is contained in:
Anuken
2025-04-05 12:59:26 -04:00
parent 9647b4fff6
commit 8771504cbe
8 changed files with 26 additions and 42 deletions

View File

@@ -1203,10 +1203,13 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
block.drawOverlay(x, y, rotation);
}
public void drawItemSelection(UnlockableContent selection){
if(selection != null && Core.settings.getBool("displayselection", true)){
TextureRegion region = selection.fullIcon;
Draw.rect(region, x, y + block.size * tilesize / 2f + 4, 8f * region.ratio(), 8f);
public void drawItemSelection(@Nullable UnlockableContent selection){
if(selection != null){
float dx = x - block.size * tilesize/2f, dy = y + block.size * tilesize/2f, s = iconSmall / 4f;
Draw.mixcol(Color.darkGray, 1f);
Draw.rect(selection.fullIcon, dx, dy - 1, s, s);
Draw.reset();
Draw.rect(selection.fullIcon, dx, dy, s, s);
}
}