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

Update leader historical events #115

Closed
MichaelMakesGames opened this issue Nov 7, 2023 · 4 comments
Closed

Update leader historical events #115

MichaelMakesGames opened this issue Nov 7, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@MichaelMakesGames
Copy link
Collaborator

Leaders have received quite a few changes with the 3.8 / Paragons update.

For reference, here are the leader events currently implemented:

    # tied to a specific leader:
    ruled_empire = enum.auto()
    governed_sector = enum.auto()
    research_leader = enum.auto()
    faction_leader = enum.auto()
    leader_recruited = enum.auto()
    leader_died = enum.auto()  # TODO
    level_up = enum.auto()
    fleet_command = enum.auto()

With 3.8, research_leader and faction_leader are no longer relevant.
New events could be added for appointed_to_council, governed_planet, leader_retired (retirement already existed, but is more common post-3.8), and heir_appointed (this is also not new to 3.8).

Potentially, new events could also be added for leader_gained_subclass_trait and leader_gained_destiny_trait (or an event for any gained trait, but that might be too much).

It's worth noting that 3.10, due to be released before the end of the year, will include significant changes to leaders, so it probably makes sense to wait until that's released before working on this.

@eliasdoehne
Copy link
Owner

eliasdoehne commented Nov 7, 2023

I started some related work a while ago in this branch but never finished it, it adds some events for council appointments, and at least this part still seems to work:
image

Your other comments:

  • governed_planet makes sense, should not be too hard to add
  • I'm sure something broke about tracking leader traits, so I assume things are represented differently in the save files now. I'd that first and then decide how granular to track this
  • Good suggestion about heir appointed, I think this can be extracted from the leader data
  • Retirement vs death was previously not distinguishable in the save file (or at least I did not find it), so for now they are both covered by leader_died along with the vague message in the ledger. If there is a way, we can definitely add it but as I remember, the leader entry just disappears in both cases

I can pick this topic up again this weekend. I think it could be a good step to get back into the code, and if the next release changes things, then so be it... :D

@MichaelMakesGames
Copy link
Collaborator Author

I'm sure something broke about tracking leader traits, so I assume things are represented differently in the save files now. I'd that first and then decide how granular to track this

Not sure what you mean about something breaking... I don't see any code (at least on master) for tracking leader traits; only species traits. Leader traits are a list of strings in the traits property of leader gamestate.

Retirement vs death was previously not distinguishable in the save file

Ah, looks like that is still the case. It might be worth changing the message for the leader_died event to mention retirement instead of just "died or was fired", since that happens a fair amount now.

I can pick this topic up again this weekend. I think it could be a good step to get back into the code, and if the next release changes things, then so be it... :D

Glad to hear I'm rekindling your interest :) Btw the new update just got a release date for Nov 16. Hopefully we'll get some details on the leader rework in tomorrow's DD

@eliasdoehne
Copy link
Owner

Good to know about that release date, that's really soon! I'll still spend a bit of time on leaders before then, just to get back into the code.

Not sure what you mean about something breaking... I don't see any code (at least on master) for tracking leader traits; only species traits. Leader traits are a list of strings in the traits property of leader gamestate.

You're right, I confused it with leader level ups but those seem to work. Anyway I got started on the traits, it's not too complicated.

died or was fired

I never liked that message much anyway, retired sounds much better. 👍

@MichaelMakesGames MichaelMakesGames added the enhancement New feature or request label May 10, 2024
@MichaelMakesGames
Copy link
Collaborator Author

Implemented in 7cabf08

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants