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

new lifegen patrols, shunned stuff, faith patrol block #115

Merged
merged 30 commits into from
May 16, 2024

Conversation

jaysoleson
Copy link
Collaborator

  • new "faith_effects" block for patrols to change a cats faith-- test patrol is still in there
  • tweaks to accessory gaining from patrols for o_c1 can get em
  • new ceremony text for shunned apprentices and forgiven warriors
  • disabled working buttons (queen, mediator, medcat) for shunned cats
  • new patrols: shunned defaults for several statuses + 2 and 3 cat dates. some statuses still need shunned default patrols
  • also a few more two cat df patrols
  • enabled the possibility of shunned-specific DF patrols but shunned cats can still get all the normal ones
  • thats all i rememebr :3c

resources/dicts/events/lifegen_events/ceremonies.json Outdated Show resolved Hide resolved
@@ -1903,12 +1903,12 @@
"you_shunned",
"they_blind",
"you_blind",
"from_mate",
"from_your_mate",
Copy link
Owner

Choose a reason for hiding this comment

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

"from_mate" is correct

@@ -608,7 +603,7 @@ def decide_if_romantic(romantic_event, patrol_leader, random_cat, patrol_apprent
print("final romance chance:", chance_of_romance_patrol)
return not int(random.random() * chance_of_romance_patrol)

def _filter_patrols(self, possible_patrols: List[PatrolEvent], biome:str, camp:str, current_season:str, patrol_type:str):
def _filter_patrols(self, possible_patrols: List[PatrolEvent], biome:str, current_season:str, patrol_type:str):
Copy link
Owner

Choose a reason for hiding this comment

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

any reason why you're removing camp?

@@ -26,8 +26,6 @@
from scripts.patrol.patrol_outcome import PatrolOutcome
from scripts.cat.cats import Cat
from scripts.special_dates import get_special_date, contains_special_date_tag
from scripts.utility import change_clan_relations, change_clan_reputation, get_cluster, get_alive_kits, get_alive_cats, get_alive_apps, get_alive_meds, get_alive_mediators, get_alive_queens, get_alive_elders, get_alive_warriors, get_med_cats, ceremony_text_adjust, \
get_current_season, adjust_list_text, ongoing_event_text_adjust, event_text_adjust, create_new_cat, create_outside_cat
Copy link
Owner

Choose a reason for hiding this comment

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

removing these imports breaks some abbreviations

text2 = self.adjust_txt(text)
if text2:
text = text2

Copy link
Owner

Choose a reason for hiding this comment

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

pls my abbrevs 😭

@@ -519,6 +525,64 @@ def gather_cat_objects(cat_list, patrol: 'Patrol') -> list:

return " ".join(results)

def _handle_faith_changes(self, patrol:'Patrol') -> str:
Copy link
Owner

Choose a reason for hiding this comment

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

good stuff

@@ -1457,7 +1451,7 @@ def handle_history(self, cat, condition=None, possible=False, scar=False, death=
f"WARNING: No history found for {self.patrol_event.patrol_id}, it may not need one but double check please!")
if scar and "scar" in self.patrol_event.history_text:
adjust_text = self.patrol_event.history_text['scar']
adjust_text = adjust_text.replace("o_c_n", f"{str(self.other_clan.name)}Clan")
Copy link
Owner

Choose a reason for hiding this comment

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

removing Clan may mess up some clangen patrols

@sedgestripe sedgestripe merged commit 3e6d5f8 into sedgestripe:LifeGen-dev May 16, 2024
6 of 7 checks passed
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