New rolling duration method moved to manager singleton.
This commit is contained in:
1 parent
174be35cac
commit
94ff3cf222
5 files changed
+31
-44
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user