Misc cleanup & target/hit movements
This commit is contained in:
@@ -61,18 +61,6 @@ abstract class PayloadComp implements Posc, Rotc, Hitboxc, Unitc{
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@Replace
|
||||
public boolean targetable(){
|
||||
return type.targetable || (type.vulnerableWithPayloads && hasPayload());
|
||||
}
|
||||
|
||||
@Override
|
||||
@Replace
|
||||
public boolean hittable(){
|
||||
return type.hittable || (type.vulnerableWithPayloads && hasPayload());
|
||||
}
|
||||
|
||||
float payloadUsed(){
|
||||
return payloads.sumf(p -> p.size() * p.size());
|
||||
}
|
||||
|
||||
@@ -355,12 +355,12 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
|
||||
}
|
||||
}
|
||||
|
||||
public boolean targetable(){
|
||||
return type.targetable;
|
||||
public boolean targetable(Team targeter){
|
||||
return type.targetable(self(), targeter);
|
||||
}
|
||||
|
||||
public boolean hittable(){
|
||||
return type.hittable;
|
||||
return type.hittable(self());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user