This repository has been archived by the owner on Jan 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0976bd1
commit bf3b2c8
Showing
5 changed files
with
108 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package mw.world.blocks.defense; | ||
|
||
import arc.graphics.*; | ||
import mindustry.content.*; | ||
import mindustry.entities.*; | ||
import mindustry.world.blocks.defense.*; | ||
|
||
public class ReinforcedWall extends Wall{ | ||
/** Delay at which the block heals itself */ | ||
public float healTime = 90f; | ||
/** Fraction of heal power, 1.0 is equivalent 100% */ | ||
public float healPower = 1f / 15f; | ||
|
||
public Effect healEffect = Fx.healBlockFull; | ||
public Color healColor = Color.valueOf("efefff"); | ||
public int healTimer = timers++; | ||
|
||
public ReinforcedWall(String name){ | ||
super(name); | ||
update = true; | ||
sync = true; | ||
} | ||
|
||
public class ReinforcedWallBuild extends WallBuild{ | ||
@Override | ||
public void updateTile(){ | ||
super.updateTile(); | ||
|
||
if(timer(healTimer, healTime)){ | ||
heal(maxHealth() / healPower); | ||
healEffect.at(x, y, rotation, healColor, size); | ||
} | ||
} | ||
} | ||
} |
bf3b2c8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wall :D
bf3b2c8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah nice name
bf3b2c8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
W A L L D:<
bf3b2c8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh. lmao u are dumb