mirror of
https://github.com/OMGeeky/ATCS.git
synced 2026-01-03 09:58:30 +01:00
extract linkIcon
This commit is contained in:
@@ -216,10 +216,7 @@ public class Item extends JSONElement {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.icon_id != null) {
|
||||
String spritesheetId = this.icon_id.split(":")[0];
|
||||
proj.getSpritesheet(spritesheetId).addBacklink(this);
|
||||
}
|
||||
linkIcon(proj, this.icon_id, this);
|
||||
if (this.category_id != null) this.category = proj.getItemCategory(this.category_id);
|
||||
if (this.category != null) this.category.addBacklink(this);
|
||||
if (this.equip_effect != null && this.equip_effect.conditions != null) {
|
||||
@@ -232,6 +229,7 @@ public class Item extends JSONElement {
|
||||
this.state = State.linked;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public Image getIcon() {
|
||||
return getProject().getIcon(icon_id);
|
||||
|
||||
Reference in New Issue
Block a user