Cleanup
This commit is contained in:
@@ -69,12 +69,12 @@ public class StatusEffects implements ContentList{
|
|||||||
transitionDamage = 14;
|
transitionDamage = 14;
|
||||||
|
|
||||||
init(() -> {
|
init(() -> {
|
||||||
affinity(shocked, ((unit, result, time) -> {
|
affinity(shocked, (unit, result, time) -> {
|
||||||
unit.damagePierce(transitionDamage);
|
unit.damagePierce(transitionDamage);
|
||||||
if(unit.team == state.rules.waveTeam){
|
if(unit.team == state.rules.waveTeam){
|
||||||
Events.fire(Trigger.shock);
|
Events.fire(Trigger.shock);
|
||||||
}
|
}
|
||||||
}));
|
});
|
||||||
opposite(burning, melting);
|
opposite(burning, melting);
|
||||||
});
|
});
|
||||||
}};
|
}};
|
||||||
@@ -96,11 +96,11 @@ public class StatusEffects implements ContentList{
|
|||||||
|
|
||||||
init(() -> {
|
init(() -> {
|
||||||
opposite(wet, freezing);
|
opposite(wet, freezing);
|
||||||
affinity(tarred, ((unit, result, time) -> {
|
affinity(tarred, (unit, result, time) -> {
|
||||||
unit.damagePierce(8f);
|
unit.damagePierce(8f);
|
||||||
Fx.burning.at(unit.x + Mathf.range(unit.bounds() / 2f), unit.y + Mathf.range(unit.bounds() / 2f));
|
Fx.burning.at(unit.x + Mathf.range(unit.bounds() / 2f), unit.y + Mathf.range(unit.bounds() / 2f));
|
||||||
result.set(melting, Math.min(time + result.time, 200f));
|
result.set(melting, Math.min(time + result.time, 200f));
|
||||||
}));
|
});
|
||||||
});
|
});
|
||||||
}};
|
}};
|
||||||
|
|
||||||
@@ -133,8 +133,8 @@ public class StatusEffects implements ContentList{
|
|||||||
effect = Fx.oily;
|
effect = Fx.oily;
|
||||||
|
|
||||||
init(() -> {
|
init(() -> {
|
||||||
affinity(melting, ((unit, result, time) -> result.set(melting, result.time + time)));
|
affinity(melting, (unit, result, time) -> result.set(melting, result.time + time));
|
||||||
affinity(burning, ((unit, result, time) -> result.set(burning, result.time + time)));
|
affinity(burning, (unit, result, time) -> result.set(burning, result.time + time));
|
||||||
});
|
});
|
||||||
}};
|
}};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user