CastleConfiguration.java 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. /*
  2. * Copyright © 2004-2023 L2J Server
  3. *
  4. * This file is part of L2J Server.
  5. *
  6. * L2J Server is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * L2J Server is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. package com.l2jserver.gameserver.config;
  20. import static java.util.concurrent.TimeUnit.HOURS;
  21. import static org.aeonbits.owner.Config.HotReloadType.ASYNC;
  22. import static org.aeonbits.owner.Config.LoadType.MERGE;
  23. import java.util.List;
  24. import org.aeonbits.owner.Config.HotReload;
  25. import org.aeonbits.owner.Config.LoadPolicy;
  26. import org.aeonbits.owner.Config.Sources;
  27. import org.aeonbits.owner.Reloadable;
  28. /**
  29. * Castle Configuration.
  30. * @author Zoey76
  31. * @version 2.6.1.0
  32. */
  33. @Sources({
  34. "file:${L2J_HOME}/custom/game/config/castle.properties",
  35. "file:./config/castle.properties",
  36. "classpath:config/castle.properties"
  37. })
  38. @LoadPolicy(MERGE)
  39. @HotReload(value = 1, unit = HOURS, type = ASYNC)
  40. public interface CastleConfiguration extends Reloadable {
  41. @Key("SiegeHourList")
  42. List<Integer> getSiegeHourList();
  43. @Key("TeleportFunctionFeeRatio")
  44. Long getTeleportFunctionFeeRatio();
  45. @Key("TeleportFunctionFeeLvl1")
  46. Integer getTeleportFunctionFeeLvl1();
  47. @Key("TeleportFunctionFeeLvl2")
  48. Integer getTeleportFunctionFeeLvl2();
  49. @Key("SupportFunctionFeeRatio")
  50. Long getSupportFunctionFeeRatio();
  51. @Key("SupportFeeLvl1")
  52. Integer getSupportFeeLvl1();
  53. @Key("SupportFeeLvl2")
  54. Integer getSupportFeeLvl2();
  55. @Key("MpRegenerationFunctionFeeRatio")
  56. Long getMpRegenerationFunctionFeeRatio();
  57. @Key("MpRegenerationFeeLvl1")
  58. Integer getMpRegenerationFeeLvl1();
  59. @Key("MpRegenerationFeeLvl2")
  60. Integer getMpRegenerationFeeLvl2();
  61. @Key("HpRegenerationFunctionFeeRatio")
  62. Long getHpRegenerationFunctionFeeRatio();
  63. @Key("HpRegenerationFeeLvl1")
  64. Integer getHpRegenerationFeeLvl1();
  65. @Key("HpRegenerationFeeLvl2")
  66. Integer getHpRegenerationFeeLvl2();
  67. @Key("ExpRegenerationFunctionFeeRatio")
  68. Long getExpRegenerationFunctionFeeRatio();
  69. @Key("ExpRegenerationFeeLvl1")
  70. Integer getExpRegenerationFeeLvl1();
  71. @Key("ExpRegenerationFeeLvl2")
  72. Integer getExpRegenerationFeeLvl2();
  73. @Key("OuterDoorUpgradePriceLvl2")
  74. Integer getOuterDoorUpgradePriceLvl2();
  75. @Key("OuterDoorUpgradePriceLvl3")
  76. Integer getOuterDoorUpgradePriceLvl3();
  77. @Key("OuterDoorUpgradePriceLvl5")
  78. Integer getOuterDoorUpgradePriceLvl5();
  79. @Key("InnerDoorUpgradePriceLvl2")
  80. Integer getInnerDoorUpgradePriceLvl2();
  81. @Key("InnerDoorUpgradePriceLvl3")
  82. Integer getInnerDoorUpgradePriceLvl3();
  83. @Key("InnerDoorUpgradePriceLvl5")
  84. Integer getInnerDoorUpgradePriceLvl5();
  85. @Key("WallUpgradePriceLvl2")
  86. Integer getWallUpgradePriceLvl2();
  87. @Key("WallUpgradePriceLvl3")
  88. Integer getWallUpgradePriceLvl3();
  89. @Key("WallUpgradePriceLvl5")
  90. Integer getWallUpgradePriceLvl5();
  91. @Key("TrapUpgradePriceLvl1")
  92. Integer getTrapUpgradePriceLvl1();
  93. @Key("TrapUpgradePriceLvl2")
  94. Integer getTrapUpgradePriceLvl2();
  95. @Key("TrapUpgradePriceLvl3")
  96. Integer getTrapUpgradePriceLvl3();
  97. @Key("TrapUpgradePriceLvl4")
  98. Integer getTrapUpgradePriceLvl4();
  99. @Key("AllowRideWyvernAlways")
  100. Boolean allowRideWyvernAlways();
  101. @Key("AllowRideWyvernDuringSiege")
  102. Boolean allowRideWyvernDuringSiege();
  103. }