TownyAdvanced / SiegeWar

A war plugin for Towny.
https://townyadvanced.github.io/
Other
60 stars 38 forks source link

Add option to punish defenders with inventory loss when they are losing by too many points. #920

Closed LlmDl closed 1 month ago

LlmDl commented 1 month ago

Description:


New Nodes/Commands/ConfigOptions:

  - keep_inventory_on_siegezone_death.disable_for_defenders.enable
    - Default: false
    - This feature, when enabled, will cause defenders to not keep their inventory if the Siege point balance is too far positive.
    - ie: They defenders are losing by a great number.
  - keep_inventory_on_siegezone_death.disable_for_defenders.threshold
    - Default: 500
    - The threshold required to cause defenders to lose their inventory. If the Siege point balance is equal to or greater than this number
      and disable_for_defenders is enabled, defenders will not keep their inventories.

Relevant Issue ticket:

Closes #919


By making this pull request, I represent that I have the right to waive copyright and related rights to my contribution, and agree that all copyright and related rights in my contributions are waived, and I acknowledge that the TownyAdvanced organization has the copyright to use and modify my contribution under the SiegeWar License for perpetuity.