mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-11-19 17:05:20 +08:00
refactor(UXAssist): replace magic numbers with constants
This commit is contained in:
1 parent
7973cbe358
commit
a133fd9e14
8 files changed
+76
-124
No files matched your search
@@ -5,6 +5,7 @@ using BepInEx.Configuration;
|
||||
using HarmonyLib;
|
||||
using UnityEngine;
|
||||
using UXAssist.Common;
|
||||
using UXAssist.Common.GameConstants;
|
||||
|
||||
namespace UXAssist.Patches.Logistics;
|
||||
|
||||
@@ -85,7 +86,7 @@ internal class AutoConfigLogistics : PatchImpl<AutoConfigLogistics>
|
||||
{
|
||||
if (__instance.handPrefabDesc.isDispenser)
|
||||
{
|
||||
__instance.handBpParams[bpIndex][2] = (int)(long)(5000.0 * LogisticsPatch.AutoConfigDispenserChargePower.Value + 0.5);
|
||||
__instance.handBpParams[bpIndex][2] = (int)(long)(LogisticsConstants.DispenserChargePowerMultiplier * LogisticsPatch.AutoConfigDispenserChargePower.Value + 0.5);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user