This commit is contained in:
Anuken
2020-08-10 16:10:18 -04:00
parent c4e8fef8d0
commit c560de9c53
18 changed files with 13 additions and 3 deletions

View File

@@ -73,6 +73,8 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
public double sense(LAccess sensor){
if(sensor == LAccess.totalItems) return stack().amount;
if(sensor == LAccess.health) return health;
if(sensor == LAccess.x) return x;
if(sensor == LAccess.y) return y;
return 0;
}