From 6a61389987a5d93ab69e85b389bbb224316c7bec Mon Sep 17 00:00:00 2001 From: CWX Date: Tue, 26 Jul 2022 20:41:04 +0100 Subject: [PATCH] updated to work with 3.1.1 and client 19078 --- .../bepInEx/plugins/KcY-SeeItemValue.dll | Bin 9216 -> 9216 bytes KcY-SeeItemValue/itemValue/itemValueMod.cs | 30 +++++++++--------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/KcY-SeeItemValue/itemValue/Built/KcY-SeeItemValue 1.4.0/bepInEx/plugins/KcY-SeeItemValue.dll b/KcY-SeeItemValue/itemValue/Built/KcY-SeeItemValue 1.4.0/bepInEx/plugins/KcY-SeeItemValue.dll index 29a226d750da90018aa1f20f0caf50f0b21c9046..36417fa2b996614817ad97fe35cc3385275b9aba 100644 GIT binary patch delta 2733 zcmb7GdvKK175|-YzsK&9kbPwHARF9GfCLg_5)%_1SqX_GF#)1M=#_4u z3X96L%7~q7%~|l@L-72Wc$F>oDywjPgad)S{#pZ#ya*le;?(?Wvj3b2FEShDUlYlh zPUMaMnMmb~5cc<0;mUL(uOZH>G%IgbX~lihW?4EL42>AVa1+CyMBUnRL@H@kNHP3&?hWe^f%)anTQE{%z4E4 zh}rfGd&l@Qvj;LPL4LBZE5jx@hJ`&D_OpcLCnxL--D??e;@LElWL!8X>;#7CG`Vn2 zSQ7iKzc9NzL&^7<-vvNgnS)kgN_l~Duu52Zfq7V$RVGeT9`k7(hf=de;KDb-GVyX`g)|r!+Cj_mq%lOyjM( zvS*^rr&(ltO49oO-{XRM$X-SR#bSpU`MTC|3a8+XUAOMg^0M1Q$&i0dz4E z)-wi?BmV8!Y&Ns~87;>Id%6*1T*r34em7%K8^k>BA7(s&`xygBAW@wWHEF}#`7QP! zmI=37dkZ`94-8_QzB1lH10wpTn4m-E86@d`<16f=UVV!F-{KqA9ODbL9YvPG_uvKc zFh0je@CaVCJailv^)Q{ptL*;(ZoP)_FxAj!3A}B3D2A}sM3dAnBW<~awM^l zHuIZ;PbdClc=?3x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j2EY|5=%qq=~ zLJkNpzlAR|)r{QEp(^G9Ex^8y_&v}UOE;wb0weesevDDF`3kDx(|?C?`hz)x2pu>6 zf@2iY-{tm?aFb&`;EgqeZFYmV$G6GFe3rr2i|=kei7_@mY%E#XnQjEQ4R91~(sh<#S< z86ik@&J`BWBlxq{Aa<{ko_4q5x*Tx++wb35;2(9iI>>D0w9_;NK^m`ivLH|90 z2lw^+vDG)=$D%L#r<8F`Z}NBVi|$F?O!m72z0JX3!1_+w%lhU(a3DIcB9W|-^tSd& zd;#Tvdk61@0qjLTd>CdM1h>mG8Z^^~A0l+STSWp;fcJ&;IPX3Tv$E>(); if (medKit != null && medKit.HpResource != 0 && medKit.MaxHpResource != 0) { editedPrice *= medKit.HpResource / medKit.MaxHpResource; - Debug.LogError($" MedKitComponent: {editedPrice}"); + //Debug.LogError($" MedKitComponent: {editedPrice}"); } var repair = item.GetItemComponent(); @@ -72,7 +72,7 @@ namespace itemValueMod if (repair.Durability > 0) { editedPrice *= repair.Durability / originalMax; - Debug.LogError($" RepairableComponent: {editedPrice}"); + //Debug.LogError($" RepairableComponent: {editedPrice}"); } else { @@ -84,7 +84,7 @@ namespace itemValueMod if (dogtag != null && dogtag.Level != 0) { editedPrice *= dogtag.Level; - Debug.LogError($" DogtagComponent: {editedPrice}"); + //Debug.LogError($" DogtagComponent: {editedPrice}"); } var repairKit = item.GetItemComponent(); @@ -93,7 +93,7 @@ namespace itemValueMod if (repairKit.Resource > 0) { editedPrice *= repairKit.Resource / originalMax; - Debug.LogError($" RepairKitComponent: {editedPrice}"); + //Debug.LogError($" RepairKitComponent: {editedPrice}"); } else { @@ -104,11 +104,11 @@ namespace itemValueMod var resource = item.GetItemComponent(); if (resource != null && resource.Value != 0 && resource.MaxResource != 0) { - Debug.LogError($" ResourceComponent.value: {resource.Value}"); - Debug.LogError($" ResourceComponent.MaxResource: {resource.MaxResource}"); + //Debug.LogError($" ResourceComponent.value: {resource.Value}"); + //Debug.LogError($" ResourceComponent.MaxResource: {resource.MaxResource}"); editedPrice *= resource.Value / resource.MaxResource; - Debug.LogError($" ResourceComponent: {editedPrice}"); + //Debug.LogError($" ResourceComponent: {editedPrice}"); } var foodDrink = item.GetItemComponent(); @@ -117,7 +117,7 @@ namespace itemValueMod GInterface208 ginterface208_0 = (GInterface208)foodDrink.GetType().GetField("ginterface208_0", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(foodDrink); editedPrice *= foodDrink.HpPercent / ginterface208_0.MaxResource; - Debug.LogError($" FoodDrinkComponent: {editedPrice}"); + //Debug.LogError($" FoodDrinkComponent: {editedPrice}"); } var keys = item.GetItemComponent(); @@ -131,7 +131,7 @@ namespace itemValueMod double multi = totalMinusUsed / ginterface212_0.MaximumNumberOfUsage; editedPrice *= multi; - Debug.LogError($" KeyComponent: {editedPrice}"); + //Debug.LogError($" KeyComponent: {editedPrice}"); } } @@ -139,18 +139,18 @@ namespace itemValueMod if (sideEffect != null && sideEffect.Value != 0) { editedPrice *= sideEffect.Value / sideEffect.MaxResource; - Debug.LogError($" SideEffectComponent: {editedPrice}"); + //Debug.LogError($" SideEffectComponent: {editedPrice}"); } _price = editedPrice * editedMulti; - Debug.LogError($"ENDING PRICE: {_price}"); + //Debug.LogError($"ENDING PRICE: {_price}"); return _price; } public static string ValueStr(this Item item) { var result = Math.Round(item.Value()).ToString(); - Debug.LogError($"price, rounded to string: {result}"); + //Debug.LogError($"price, rounded to string: {result}"); return result; }