Browse Source

bane commander dialog reset options

lakebane2
FatBoy-DOTC 2 weeks ago
parent
commit
00b38970a1
  1. 14
      src/engine/objects/Contract.java

14
src/engine/objects/Contract.java

@ -381,7 +381,6 @@ public class Contract extends AbstractGameObject { @@ -381,7 +381,6 @@ public class Contract extends AbstractGameObject {
bane.setLiveDate_NEW(bane.getLiveDate().plusDays(updateBaneDay));
}
}
bane.setLiveDate(DbManager.BaneQueries.getLiveDate(bane.getCityUUID()));
}
if (updateBaneTime > 0) {
if(DbManager.BaneQueries.SET_BANE_TIME_NEW(updateBaneTime,bane.getCityUUID())){
@ -410,6 +409,19 @@ public class Contract extends AbstractGameObject { @@ -410,6 +409,19 @@ public class Contract extends AbstractGameObject {
Dispatch dispatch = Dispatch.borrow(playerCharacter, cityDataMsg);
DispatchMessage.dispatchMsgDispatch(dispatch, Enum.DispatchChannel.SECONDARY);
}
vd.getOptions().clear();
if(!bane.daySet) {
MenuOption option1 = new MenuOption(796, "Set Bane Day", 796);
vd.getOptions().add(option1);
}
if(!bane.timeSet) {
MenuOption option2 = new MenuOption(797, "Set Bane Time", 797);
vd.getOptions().add(option2);
}
if(!bane.capSet) {
MenuOption option3 = new MenuOption(797, "Set Bane Cap", 798);
vd.getOptions().add(option3);
}
}
return vd;

Loading…
Cancel
Save