Multi-target zenith AI

This commit is contained in:
Anuken
2021-08-06 11:07:30 -04:00
parent 588523b311
commit 316adf63ee
3 changed files with 9 additions and 3 deletions

View File

@@ -41,7 +41,7 @@ abstract class PuddleComp implements Posc, Puddlec, Drawc{
@Import int id;
@Import float x, y;
transient float accepting, updateTime, lastRipple;
transient float accepting, updateTime, lastRipple = Time.time + Mathf.random(40f);
float amount;
Tile tile;
Liquid liquid;
@@ -73,7 +73,7 @@ abstract class PuddleComp implements Posc, Puddlec, Drawc{
amount = Mathf.clamp(amount, 0, maxLiquid);
if(amount <= 0f){
if(amount <= 0f || Puddles.get(tile) != self()){
remove();
}