public static bool Prefix(GameScript __instance, int slot, Item[] ___storage, int ___curStoragePage) { int num = slot + ___curStoragePage * 30; PatchMethods.HoverItem(___storage[num]); return(false); }
public static void Postfix(IEnumerator __instance, bool __result) { if (!__result) { PatchMethods.InvokeOnLevelUp(GameScript.playerLevel); GameScript thisInstance = This.GetValue(__instance) as GameScript; for (int i = 0; i < oldStats.Length; i++) { thisInstance.statUptxt[i].text = thisInstance.GetStatN(i) + "+" + (GameScript.playerBaseStat[i] - oldStats[i]); thisInstance.statUptxt[i + oldStats.Length].text = thisInstance.statUptxt[i].text; thisInstance.statUp[i].SendMessage("Play"); } thisInstance.UpdateHP(); thisInstance.UpdateMana(); thisInstance.UpdateEnergy(); thisInstance.RefreshStats(); } }
public static bool Prefix(GameScript __instance, int slot, Item[] ___craft) { PatchMethods.HoverItem(___craft[slot]); return(false); }
public PatchData(APIs api, string resource, PatchMethods patchMethod, long?primaryKeyOfRecord, Dictionary <string, object> valuesToUpdate) : base(api, resource) { _patchMethod = patchMethod; _primaryKey = primaryKeyOfRecord; _values = valuesToUpdate; }
public static bool Prefix(GameScript __instance, int slot, Item[] ___gatherStorage) { PatchMethods.HoverItem(___gatherStorage[slot]); return(false); }
internal Patch(PatchMethods <T> patchMethods) { _patchMethods = patchMethods; _actions = new List <IPatchAction <T> >(); }
public static void Postfix(Item[] ___inventory) { PatchMethods.RecalculateGearStats(___inventory); }