@Override protected boolean isResearched(PeriodicPlayer player, PeriodicItem item) { return player.getTable().getIconsToDiscover(item).length == 0; }
public void setIcon(PeriodicPlayer player) { final int rnd = new Random().nextInt(player.getTable().getIconsToDiscover(this.item).length); this.setIcon(player.getTable().getIconsToDiscover(this.item)[rnd]); }
@Override protected void onResearched(PeriodicPlayer player, PeriodicItem item) { player.getTable().discoverIcon(item, PeriodicIcon.fromID(this.icon)); }