New rolling duration method moved to manager singleton.

This commit is contained in:
2024-05-12 08:14:06 -04:00
parent 174be35cac
commit 94ff3cf222
5 changed files with 31 additions and 44 deletions
-22
View File
@@ -1014,28 +1014,6 @@ public class NPC extends AbstractCharacter {
return filteredItemList;
}
public int getRollingTimeInSeconds(int itemID) {
ItemTemplate ib = ItemTemplate.templates.get(itemID);
if (ib == null)
return 0;
if (ItemTemplate.templates.get(itemID).item_type == ItemType.SCROLL)
return this.getRank() * 60 * 60 * 3;
float time;
if (this.building == null)
return 600;
float rank = this.building.getRank() - 1;
float rate = (float) (2.5 * rank);
time = (20 - rate);
time *= 60;
return (int) time;
}
public boolean remove() {
Building building;