|
|
@ -376,6 +376,7 @@ public class Contract extends AbstractGameObject { |
|
|
|
bane.setLiveDate_NEW(bane.getLiveDate().plusDays(updateBaneDay)); |
|
|
|
bane.setLiveDate_NEW(bane.getLiveDate().plusDays(updateBaneDay)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
bane.setLiveDate(DbManager.BaneQueries.getLiveDate(bane.getCityUUID())); |
|
|
|
} |
|
|
|
} |
|
|
|
if (updateBaneTime > 0) { |
|
|
|
if (updateBaneTime > 0) { |
|
|
|
if(DbManager.BaneQueries.SET_BANE_TIME_NEW(updateBaneTime,bane.getCityUUID())){ |
|
|
|
if(DbManager.BaneQueries.SET_BANE_TIME_NEW(updateBaneTime,bane.getCityUUID())){ |
|
|
@ -386,6 +387,7 @@ public class Contract extends AbstractGameObject { |
|
|
|
bane.setLiveDate_NEW(bane.getLiveDate().withHourOfDay(12 + updateBaneTime)); |
|
|
|
bane.setLiveDate_NEW(bane.getLiveDate().withHourOfDay(12 + updateBaneTime)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
bane.setLiveDate(DbManager.BaneQueries.getLiveDate(bane.getCityUUID())); |
|
|
|
} |
|
|
|
} |
|
|
|
if (updateBaneCap > 0) { |
|
|
|
if (updateBaneCap > 0) { |
|
|
|
if(DbManager.BaneQueries.SET_BANE_CAP_NEW(updateBaneCap,bane.getCityUUID())){ |
|
|
|
if(DbManager.BaneQueries.SET_BANE_CAP_NEW(updateBaneCap,bane.getCityUUID())){ |
|
|
@ -394,6 +396,10 @@ public class Contract extends AbstractGameObject { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(bane.timeSet && bane.daySet && bane.capSet){ |
|
|
|
|
|
|
|
bane.getSiegePhase(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return vd; |
|
|
|
return vd; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|