Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Siege Lore Feature - Record of Siege data and outcome on the banner item #909

Merged
merged 94 commits into from
May 14, 2024

Conversation

lexiccn
Copy link
Contributor

@lexiccn lexiccn commented Apr 22, 2024

Description:

Banners after sieges will now display a permanent record of the siege in their lore and name.

Right clicking the placed lore banner will give a chat message with data, this allows players to display banners (e.g in a museum) and allow other players to come through and view the details without needing to hold the physical item.

Right clicking air with the banner item will display the same message.

The banner can be crafted into a Siege Shield with the lore and name intact - The lore and name are also kept intact when placing and breaking it.

The lore banners can not be used to start a new siege, they must craft a new banner.

This should allow players to trade banners from well-known sieges or create museums.


New Nodes/Commands/ConfigOptions:

siege_lore.enabled

  • Enables or disables the Siege Lore feature, currently no further configuration than this.

Adds a lot of translation keys for Siege Lore to make the text as configurable as possible.


Relevant Issue ticket:

#854


  • I have tested this pull request for defects on a server.

I have tested this pretty thoroughly on 1.20.4 and not been able to cause any issues, it correctly blocks/allows sieges, breaking, placing, crafting the banner worked in all circumstances. Intentionally messing up Siege data by removing it before ending it with admin commands is handled.

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.

lexiccn added 30 commits April 19, 2024 21:30
Copy link
Member

@LlmDl LlmDl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did a first-pass read through of things. Some changes need to be made. Once this is completed I'll re-review.

@lexiccn lexiccn requested a review from LlmDl April 27, 2024 16:20
@lexiccn lexiccn requested a review from LlmDl April 27, 2024 20:41
@lexiccn lexiccn requested a review from LlmDl April 27, 2024 22:50
@LlmDl LlmDl merged commit 8f7948b into TownyAdvanced:master May 14, 2024
@LlmDl LlmDl added this to the 2.11.0 milestone May 14, 2024
@lexiccn lexiccn deleted the siege_lore_feature branch May 14, 2024 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants