Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuria-Shikibe committed Jan 1, 2021
1 parent 6af3703 commit 0048c32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/newhorizon/blocks/special/JumpGate.java
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public void drawConfigure() {
Draw.color(baseColor());
Lines.square(target.x, target.y, target.block().size * tilesize / 2f + 1.0f);

DrawFuncs.posSquareLinkBottom(this, target, (isCalling() && !canSpawn(getSet())) ? baseColor().cpy().mul(Color.red) : baseColor(), 1.5f, 3.5f);
DrawFuncs.posSquareLinkBottom(this, target, (isCalling() && !hasConsume(getSet())) ? baseColor().cpy().mul(Pal.ammo) : baseColor(), 1.5f, 3.5f);
}else Drawf.dashCircle(x, y, spawnRange, baseColor());

if(coreValid()){
Expand Down Expand Up @@ -326,6 +326,7 @@ public void consumeItems(){
}

public boolean hasConsume(UnitSet set){
if(!coreValid())return false;
CoreBlock.CoreBuild core = this.team.core();
return core.items.has(set.requirements());
}
Expand Down
2 changes: 1 addition & 1 deletion src/newhorizon/content/NHBlocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ public void load(){
}};

jumpGate = new JumpGate("jump-gate"){{
consumes.power(8f);
consumes.power(100f);
health = 50000;
spawnDelay = 20f;
spawnReloadTime = 300f;
Expand Down

0 comments on commit 0048c32

Please sign in to comment.