Config refactor to split dungeon generation and the mod's universal features.
This commit is contained in:
parent
d690b69a26
commit
83d0d8a737
44 changed files with 2001 additions and 1664 deletions
|
@ -5,6 +5,7 @@ using System.Text;
|
|||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
using HarmonyLib;
|
||||
using ScarletMansion.Configs;
|
||||
|
||||
namespace ScarletMansion.GamePatch {
|
||||
public class ShotgunItemPatch {
|
||||
|
@ -13,7 +14,7 @@ namespace ScarletMansion.GamePatch {
|
|||
[HarmonyPostfix]
|
||||
public static void ShootGunPatch(ref ShotgunItem __instance, Vector3 shotgunPosition, Vector3 shotgunForward){
|
||||
if (Components.ScarletDoorLock.ScarletDoorRaycast(__instance, shotgunPosition, shotgunForward, 30f, out var door)){
|
||||
var damage = PluginConfig.Instance.shotgunDamageValue;
|
||||
var damage = ConfigMain.Instance.shotgunDamageValue;
|
||||
door.ApplyDamageServerRpc(shotgunForward, damage);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue