Make text sex neutral. - annna - Annna the nice friendly bot. HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/ DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit dfdfe8a6b4d24e298259ad65b900706c5e9706b4 DIR parent f7c41e9169f7a9e5a45a4391d7f6b7251f6c7263 HTML Author: Annna Robert-Houdin <annna@bitreich.org> Date: Wed, 30 Aug 2023 16:35:38 +0200 Make text sex neutral. Diffstat: M modules/idlerpg/idlerpg-channel-se… | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) --- DIR diff --git a/modules/idlerpg/idlerpg-channel-service.py b/modules/idlerpg/idlerpg-channel-service.py @@ -167,14 +167,14 @@ def main(args): while new_weapon != hackers[hacker][4]: new_weapon = random.choice(list(weapons.keys())) hackers[hacker][4] = new_weapon - say(chaninpath, "%s had to reinstall his OS. " \ + say(chaninpath, "%s had to reinstall the OS. " \ "%s's weapon changed to %s." \ % (hacker, hackers[hacker][4])) else: event = random.choice(list(events.keys())) boost = random.randint(-10, 10) * 100 hackers[hacker][0] += boost - say(chaninpath, "%s! This caused his idle time to " \ + say(chaninpath, "%s! This caused the idle time to " \ "change by %d to %d." \ % (event % (hacker), boost, hackers[hacker][0])) @@ -241,7 +241,7 @@ def main(args): def hacker_info(hackers, hacker): hackerinfo = "The hacker %s of the class %s " % (hacker, hackers[hacker][1]) - hackerinfo += "is using his %s hardware " % (hackers[hacker][2]) + hackerinfo += "is using %s hardware " % (hackers[hacker][2]) hackerinfo += "which is protected by %s. " % (hackers[hacker][3]) hackerinfo += "%s's weapon is %s. " % (hacker, hackers[hacker][4]) hackerinfo += "%s has idled for %d seconds and has reached level %d." % (hacker, hackers[hacker][0], hackers[hacker][5]) @@ -288,9 +288,9 @@ def main(args): questhackers = random.sample(list(hackers.keys()), random.randint(1, len(hackers))) go_on_quest(hackers, questhackers) elif random.randint(1, 65535) < 5 and len(hackers) > 1: - hand_of_rms(random.choice(list(hackers.keys()))) + hand_of_rms(hackers, random.choice(list(hackers.keys()))) elif random.randint(1, 65535) < 10 and len(hackers) > 1: - calamity(random.choice(list(hackers.keys()))) + calamity(hackers, random.choice(list(hackers.keys()))) writeout_dictfile("%s/hackers.txt" % (basepath), hackers) continue