mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-10 04:40:10 +07:00
Include time in status effect draw (#5640)
This commit is contained in:
parent
373d004752
commit
7ec5aa28b3
@ -154,7 +154,7 @@ abstract class StatusComp implements Posc, Flyingc{
|
||||
|
||||
public void draw(){
|
||||
for(StatusEntry e : statuses){
|
||||
e.effect.draw(self());
|
||||
e.effect.draw(self(), e.time);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -152,6 +152,10 @@ public class StatusEffect extends UnlockableContent{
|
||||
});
|
||||
}
|
||||
|
||||
public void draw(Unit unit, float time){
|
||||
draw(unit); //Backwards compatibility
|
||||
}
|
||||
|
||||
public void draw(Unit unit){
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user