Skip to content

Commit

Permalink
Release: Version 1.0
Browse files Browse the repository at this point in the history
FossilOrigin-Name: 03b239e4dea5145405e10253e4aec57b62dd7b54d5db89c13028951363aaabbe
  • Loading branch information
librarianmage committed May 31, 2022
2 parents b0a41ad + 71c3757 commit 6e94af3
Show file tree
Hide file tree
Showing 11 changed files with 147 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Genders.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8" ?>
<genders Load="Merge">
<gender Name="males" DoNotReplicateAsPronounSet="false" />
<gender Name="females" DoNotReplicateAsPronounSet="false" />
</genders>
55 changes: 55 additions & 0 deletions PronounSets.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8" ?>
<pronounsets Load="Merge">
<!--
Reference:
Subjective - Subject
Objective - Object
PossessiveAdjective - Possessive determiner
SubstantivePossesive - Posessive pronoun
Reflexive - Reflexive
-->
<!-- it/its/itself -->
<pronounset
Subjective="it"
Objective="it"
PossessiveAdjective="its"
SubstantivePossessive="its"
Reflexive="itself"
/>

<!-- they/them/themself -->
<pronounset
Subjective="they"
Objective="them"
PossessiveAdjective="their"
SubstantivePossessive="theirs"
Reflexive="themself"
/>

<!-- one/one's/oneself -->
<pronounset
Subjective="one"
Objective="one"
PossessiveAdjective="one's"
SubstantivePossessive="one's"
Reflexive="oneself"
/>

<!-- e/em/eir (Spivak) -->
<pronounset
Subjective="e"
Objective="em"
PossessiveAdjective="eir"
SubstantivePossessive="eirs"
Reflexive="emself"
/>

<!-- thon/thons -->
<pronounset
Subjective="thon"
Objective="thon"
PossessiveAdjective="thons"
SubstantivePossessive="thon's"
Reflexive="thonself"
/>
</pronounsets>
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Qud: Genders Unleashed

A mod that works in conjunction with the [Gender and Pronoun Sets](https://steamcommunity.com/sharedfiles/filedetails/?id=1735379738) mod to allow your delver to wreathe themselves in the gender identity and pronouns they feel most comfortable in.

Specifically, this mod allows you to pick from all personal genders and pronouns defined in the game, with some additions.

[Workshop Page](https://steamcommunity.com/sharedfiles/filedetails/?id=2815078000)
14 changes: 14 additions & 0 deletions egg.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using XRL.UI;
using XRL.Wish;

[HasWishCommand]
public class GenderUploadForm
{
[WishCommand(Command = "gendermeme")]
static public bool GenderMeme()
{
string[] opts = {"Male", "Female", "Custom [Upload custom gender (max 10MB)]"};
Popup.ShowOptionList("Gender", opts);
return true;
}
}
Binary file added icon-small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added icon.aseprite
Binary file not shown.
Binary file added icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"id": "QudGendersUnleashed",
"title": "{{m-Y-g alternation|Qud: Genders Unleashed}}",
"description": "Adds gendeers and pronounce",
"version": "1.0",
"author": "librarianmage",
"previewImage": "icon.png"
}
Binary file added meme.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 50 additions & 0 deletions patches.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
using HarmonyLib;
using System.Collections.Generic;
using System.Reflection;
using XRL;
using XRL.World;
using XRL.CharacterBuilds.Qud.UI;

namespace QudGendersUnleashed.HarmonyPatches
{
[HarmonyPatch]
public static class CharacterCreationGenderPatch
{
public static MethodInfo TargetMethod()
{
return AccessTools.DeclaredMethod(AccessTools.Inner(typeof(QudCustomizeCharacterModuleWindow), "<OnChooseGenderAsync>d__5"), "MoveNext");
}
public static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{
MethodInfo oldMethod = AccessTools.Method(typeof(Gender), nameof(Gender.GetAllGenericPersonalSingular));
MethodInfo newMethod = AccessTools.Method(typeof(Gender), nameof(Gender.GetAllPersonal));
return HarmonyLib.Transpilers.MethodReplacer(instructions, oldMethod, newMethod);
}
}

[HarmonyPatch]
public static class CharacterCreationPronounPatch
{
public static MethodBase TargetMethod()
{
return AccessTools.DeclaredMethod(AccessTools.Inner(typeof(QudCustomizeCharacterModuleWindow), "<OnChoosePronounSetAsync>d__7"), "MoveNext");
}
public static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{
MethodInfo oldMethod = AccessTools.Method(typeof(PronounSet), nameof(PronounSet.GetAllGenericPersonalSingular));
MethodInfo newMethod = AccessTools.Method(typeof(PronounSet), nameof(PronounSet.GetAllPersonal));
return HarmonyLib.Transpilers.MethodReplacer(instructions, oldMethod, newMethod);
}
}

[HarmonyPatch(typeof(PronounAndGenderSets),nameof(PronounAndGenderSets.ShowChangePronounSet))]
public static class PlaytimePronounPatch
{
public static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
{
MethodInfo oldMethod = AccessTools.Method(typeof(PronounSet), nameof(PronounSet.GetAllGenericPersonal));
MethodInfo newMethod = AccessTools.Method(typeof(PronounSet), nameof(PronounSet.GetAllPersonal));
return HarmonyLib.Transpilers.MethodReplacer(instructions, oldMethod, newMethod);
}
}
}
8 changes: 8 additions & 0 deletions workshop.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"WorkshopId": 2815078000,
"Title": "Qud: Genders Unleashed",
"Description": "A mod that works in conjunction with the Gender and Pronoun Sets ( https://steamcommunity.com/sharedfiles/filedetails/?id=1735379738 ) mod to allow your delver to wreathe themselves in the gender identity and pronouns they feel most comfortable in.\n\nSpecifically, this mod allows you to pick from all personal genders and pronouns defined in the game, with some additions.\n\nTested on game version 203.39\n\nGithub link: https://github.com/librarianmage/QudGendersUnleashed",
"Tags": "Stable,Beta,Script,Gender,Pronouns",
"Visibility": "2",
"ImagePath": "icon.png"
}

0 comments on commit 6e94af3

Please sign in to comment.