Update airportceo
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
using System.Linq;
|
using System;
|
||||||
|
using System.Linq;
|
||||||
using BepInEx;
|
using BepInEx;
|
||||||
using BepInEx.Configuration;
|
using BepInEx.Configuration;
|
||||||
using HarmonyLib;
|
using HarmonyLib;
|
||||||
@@ -12,10 +13,10 @@ namespace DaveCEO {
|
|||||||
private const string pluginName = "DaveCEO";
|
private const string pluginName = "DaveCEO";
|
||||||
private const string pluginVersion = "1.0.0";
|
private const string pluginVersion = "1.0.0";
|
||||||
|
|
||||||
public static ConfigEntry<float> spawnTimer;
|
public static ConfigEntry<float> moneyMultiplier;
|
||||||
|
|
||||||
public void Awake() {
|
public void Awake() {
|
||||||
spawnTimer = Config.Bind("General", "SpawnTimer", 10f);
|
moneyMultiplier = Config.Bind("General", "MoneyMultiplier", 1f);
|
||||||
|
|
||||||
Logger.LogInfo("Cyka mod loaded");
|
Logger.LogInfo("Cyka mod loaded");
|
||||||
HarmonyFileLog.Enabled = true;
|
HarmonyFileLog.Enabled = true;
|
||||||
@@ -28,4 +29,13 @@ namespace DaveCEO {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[HarmonyPatch]
|
||||||
|
public class Patches {
|
||||||
|
[HarmonyPrefix]
|
||||||
|
[HarmonyPatch(typeof(EconomyController), "AddFunds")]
|
||||||
|
public static void Prefix(ref float sum) {
|
||||||
|
sum *= Main.moneyMultiplier.Value;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user