mirror of
https://github.com/OMGeeky/ATCS.git
synced 2025-12-30 00:03:29 +01:00
extract linkEffects
This commit is contained in:
@@ -226,19 +226,9 @@ public class Item extends JSONElement {
|
||||
linkConditions(this.equip_effect.conditions, proj, this);
|
||||
}
|
||||
|
||||
if (this.hit_effect != null) {
|
||||
linkConditions(this.hit_effect.conditions_source, proj, this);
|
||||
linkConditions(this.hit_effect.conditions_target, proj, this);
|
||||
}
|
||||
|
||||
if (this.hit_received_effect != null) {
|
||||
linkConditions(this.hit_received_effect.conditions_source, proj, this);
|
||||
linkConditions(this.hit_received_effect.conditions_target, proj, this);
|
||||
}
|
||||
|
||||
if (this.kill_effect != null) {
|
||||
linkConditions(this.kill_effect.conditions_source, proj, this);
|
||||
}
|
||||
linkEffects(this.hit_effect, proj, this);
|
||||
linkEffects(this.hit_received_effect, proj, this);
|
||||
linkEffects(this.kill_effect, proj, this);
|
||||
this.state = State.linked;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user