private void PlayerCharacterMasterController_Awake(On.RoR2.PlayerCharacterMasterController.orig_Awake orig, PlayerCharacterMasterController self) { orig(self); if (!LoadingFromSave) { // this sets the initial drop value; overrides the initial value of 0.5f set in PlayerCharacterMasterController() self.SetFieldValue("lunarCoinChanceMultiplier", DropChance.Value); } }
private void PlayerCharacterMasterController_Awake(On.RoR2.PlayerCharacterMasterController.orig_Awake orig, PlayerCharacterMasterController self) { orig(self); self.SetFieldValue("lunarCoinChanceMultiplier", DropChance.Value); }
private void PlayerCharacterMasterController_Awake(On.RoR2.PlayerCharacterMasterController.orig_Awake orig, PlayerCharacterMasterController self) { orig(self); self.gameObject.AddComponent <ClickToSpawnAsUser>().player = self; }
internal static void AwakeHook(On.RoR2.PlayerCharacterMasterController.orig_Awake orig, PlayerCharacterMasterController self) { orig(self); self.gameObject.AddComponent <ExtraPlayerCharacterMasterController>(); }