Browse Source

zone override

birdbane
FatBoy-DOTC 10 months ago
parent
commit
c99b1ab491
  1. 47
      src/engine/objects/Blueprint.java
  2. 2
      src/engine/objects/NPC.java

47
src/engine/objects/Blueprint.java

@ -493,53 +493,8 @@ public class Blueprint {
// buildings current Maintenance BuildingGroup. These values // buildings current Maintenance BuildingGroup. These values
// are expressed in hours // are expressed in hours
switch (this.buildingGroup) {
case GENERICNOUPGRADE: return 5;
break; // Cannot be upgraded
case VILLA:
case ESTATE:
case FORTRESS:
case CITADEL:
rankTime = (7 * targetRank) - 7;
break;
case TOL:
rankTime = (7 * targetRank) - 7;
break;
case BARRACK:
rankTime = (7 * targetRank) - 7;
break;
case CHURCH:
rankTime = (7 * targetRank) - 7;
break;
case FORGE:
case INN:
case TAILOR:
case MAGICSHOP:
rankTime = (7 * targetRank) - 7;
break;
case SPIRE:
rankTime = (4 * targetRank) + 4;
break;
case AMAZONHALL:
case CATHEDRAL:
case GREATHALL:
case KEEP:
case THIEFHALL:
case TEMPLEHALL:
case WIZARDHALL:
case ELVENHALL:
case ELVENSANCTUM:
case IREKEIHALL:
case FORESTHALL:
rankTime = (7 * targetRank) - 7;
break;
default:
Logger.error("Attempt to retrieve ranktime without MaintGroup");
break;
}
return rankTime;
} }
public Vector2f getExtents() { public Vector2f getExtents() {

2
src/engine/objects/NPC.java

@ -1153,7 +1153,7 @@ public class NPC extends AbstractCharacter {
upgradeTime = Integer.MAX_VALUE; upgradeTime = Integer.MAX_VALUE;
if (this.getRank() < 7) if (this.getRank() < 7)
return (this.getRank() * 8); return 5;
return 0; return 0;
} }

Loading…
Cancel
Save