mirror of
https://github.com/OMGeeky/ATCS.git
synced 2025-12-30 08:13:25 +01:00
extract linkEffects
This commit is contained in:
@@ -230,17 +230,9 @@ public class NPC extends JSONElement {
|
||||
if (this.droplist_id != null) this.droplist = proj.getDroplist(this.droplist_id);
|
||||
if (this.droplist != null) this.droplist.addBacklink(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.death_effect != null) {
|
||||
linkConditions(this.death_effect.conditions_source, proj, this);
|
||||
}
|
||||
linkEffects(this.hit_effect, proj, this);
|
||||
linkEffects(this.hit_received_effect, proj, this);
|
||||
linkEffects(this.death_effect, proj, this);
|
||||
this.state = State.linked;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user