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

Allow realms to restore abandoned subrealms #6

Open
wants to merge 100 commits into
base: master
Choose a base branch
from

Conversation

Zanaras
Copy link
Contributor

@Zanaras Zanaras commented Jul 21, 2016

This is... 4 completely new methods, 1 new form, 1 new html twig, and 3 updated translation files.

And this is also why I'd like to have a test server, so I could try out more interesting things than this without accidentally, catastrophically breaking something.

This will allow rulers to restore any abandoned direct subrealm. I thought about allowing ANY subrealm of their realm, but that can 1) step on the toes of subrulers, and is 2) needless work because they can just recreate the chain from their realm down to whatever barony makes them happy.

Assuming this is all good, it also lays the groundwork for how you'd allow realms to be recreated, as well.

Zanaras added 30 commits July 12, 2016 22:46
Oh god this is nasty looking, and I have no idea if it'll work.
A quick and dirty explanation from Delvin_Anaris later and this should actually not kill anything now.
Figuring this out has been fun. Lets see how badly I completely screw this all up. WHEE!
Initial draft of the translation file for the new realm revival page.
Removing a translation variable that wasn't needed, and fixing what would've been a bug in the process.
Adding translation for the realm restoration event.
This is restoring a realm, not reviving one. Trying to keep everything consistent.
Adding function findDeadInferiors that builds off the work function findInferiors does to generate a list of all the dead subrealms of a given realm.
Actually, no, having this check for ALL inferiors really complicates things. If we need that function later, we can add it then.
This is as unfinished as it gets, but I'll come back and finish it when I've more time.
Added fail translations for not meeting the requirements to restore a realm.
Adding realm restore success translation.
the restoreAction method has been created that will generate the form and pass that data to the restoreSubRealm method in the RealmManager.
Added public function diplomacyRestoreTest to check that you are actually able to restore a realm. This will make sure you're a player, that your realm has inferiors, that at least 1 inferior is dead, and that you are the ruler. Not sure if that last line should be true or false though...
I'm not even going to go into how many hours and dozens of tabs I had to
open in my browser to figure this all out.
Merging game master into local fork.
Removing an extra period.
Updating for consistency of terms. Originally this began as "revive" but I later moved towards "restore", as revival will be a later action for recreating realms altogether.
Removed requirement to have a character selected to view realm pages.
Making it so that it doesn't give you the option to view relations if you've not selected a character, avoiding an error page.
Because otherwise i: and item: WILL break conversations.
AKA, how to tell I'm actually setting up a test server. Blah.
Commenting out items in wikilink maker
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.

1 participant