public void Start(GameDataModder gameDataMod) { try { int dummy = 0; var harmony = new Harmony("Hp2LadyJizzMod.Hp2BaseMod"); var femaleJizzToggleCode = new CodeDataMod(10001, "509B82A2A4E16DF3774EA93B133F840F", CodeType.TOGGLE, false, "Female j**z off.", "Female j**z on."); gameDataMod.AddData(femaleJizzToggleCode); var mInit = AccessTools.Method(typeof(UiWindowPhotos), "GetDefaultPhotoViewMode"); var mInitPostfix = SymbolExtensions.GetMethodInfo(() => InitPostfix(ref dummy)); harmony.Patch(mInit, null, new HarmonyMethod(mInitPostfix)); var mRefresh = AccessTools.Method(typeof(UiWindowPhotos), "Refresh"); var mfreshPrefix = SymbolExtensions.GetMethodInfo(() => RefreshPrefix(null)); harmony.Patch(mRefresh, null, new HarmonyMethod(mfreshPrefix)); } catch (Exception e) { Harmony.DEBUG = true; FileLog.Log("EXCEPTION Hp2LadyJizzMod: " + e.Message); } }
public void Start(GameDataModder gameDataMod) { try { var harmony = new Harmony("Hp2RepeatThreesomeMod.Hp2BaseMod"); var localCode = new CodeDataMod(10002, "EA29B6A7A0AB1F669743E6C792F930F7", CodeType.TOGGLE, false, "Lovers' threesome location requirement on.", "Lovers' threesome location requirement off."); gameDataMod.AddData(localCode); var nudeCode = new CodeDataMod(10003, "40F45CA75FE6A9E007131D26FF9D36F6", CodeType.TOGGLE, false, "Nudity durring bonus rounds off.", "Nudity durring bonus rounds on."); gameDataMod.AddData(nudeCode); var PuzzleManager_OnRoundOver = AccessTools.Method(typeof(PuzzleManager), "OnRoundOver"); var LeversThreesomePrefix = SymbolExtensions.GetMethodInfo(() => LoversThreesome(null)); harmony.Patch(PuzzleManager_OnRoundOver, new HarmonyMethod(LeversThreesomePrefix)); var UiDoll_ChangeOutfit = AccessTools.Method(typeof(UiDoll), "ChangeOutfit"); var N69AddNudePrefix = SymbolExtensions.GetMethodInfo(() => N69AddNude(null, -1)); harmony.Patch(UiDoll_ChangeOutfit, new HarmonyMethod(N69AddNudePrefix)); } catch (Exception e) { Harmony.DEBUG = true; FileLog.Log("EXCEPTION Hp2RepeatThreesomeMod: " + e.Message); } }
public void AddData(CodeDataMod data) { CodeDataMods.Add(data); }