Skip to content

Added sieging convinience and tweaked some strength values#1408

Open
Palladium103 wants to merge 36 commits into
Azgaar:masterfrom
Palladium103:allow-burg-attack
Open

Added sieging convinience and tweaked some strength values#1408
Palladium103 wants to merge 36 commits into
Azgaar:masterfrom
Palladium103:allow-burg-attack

Conversation

@Palladium103
Copy link
Copy Markdown

Description

Added a way to directly attack burgs for convinience, when a burg is being sieged, the nearest non-zero regiment will come to aid.

Attempted to try give emphasis to burgs having castles by slightly modifying strengths if the burg has castle.

Palladium103 and others added 27 commits April 24, 2026 02:07
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
fix: force the type to "siege" to prevent occations where defending regiments veers off to the burg's cell
refactor: putting back some white spaces and layout to its default
fix: fraternal burgs no longer targetable
@netlify
Copy link
Copy Markdown

netlify Bot commented May 2, 2026

Deploy Preview for afmg ready!

Name Link
🔨 Latest commit a8b5d43
🔍 Latest deploy log https://app.netlify.com/projects/afmg/deploys/69fcc4da555d440008867580
😎 Deploy Preview https://deploy-preview-1408--afmg.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Palladium103
Copy link
Copy Markdown
Author

This is the second open of this pr because I messed up with the git, its here if you want to consider it :)

@Azgaar Azgaar requested a review from Copilot May 4, 2026 13:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds UI and battle-logic support for initiating sieges by clicking directly on burg icons, and tweaks siege strength weighting to emphasize citadels/castles in the battle simulator.

Changes:

  • Added a “Attack foreign burg” action in the regiment editor to start a siege by clicking a target burg, selecting the nearest defending regiment to respond.
  • Adjusted battle type detection and siege phase strength coefficients to account for burg citadels.
  • Minor text/comment wording tweaks in UI and Military module.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 7 comments.

File Description
src/modules/military-generator.ts Minor wording fix in a comment related to regiment total formatting.
src/index.html Adds a new regiment editor button for burg attacks; updates external image label text.
public/modules/ui/regiment-editor.js Implements the burg-attack (siege initiation) click flow and related UI toggling.
public/modules/ui/battle-screen.js Updates siege detection and adjusts siege strength calculations based on citadel presence; includes some formatting changes.

Comment thread public/modules/ui/regiment-editor.js
Comment thread public/modules/ui/regiment-editor.js Outdated
Comment thread public/modules/ui/regiment-editor.js Outdated
Comment thread public/modules/ui/regiment-editor.js Outdated
Comment thread public/modules/ui/battle-screen.js Outdated
Comment thread public/modules/ui/battle-screen.js
Comment thread src/index.html Outdated
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