r2mods/ilspy_dump/ror2_csproj/EntityStates.ShrineHalcyonite/ShrineHalcyoniteMidQuality.cs

26 lines
751 B
C#
Raw Normal View History

2024-10-04 07:26:37 +00:00
using RoR2;
using UnityEngine;
namespace EntityStates.ShrineHalcyonite;
public class ShrineHalcyoniteMidQuality : ShrineHalcyoniteBaseState
{
[SerializeField]
public float tierChangeMonsterCreditReduction;
public override void OnEnter()
{
base.OnEnter();
TierChange(8f);
GoldSiphonNearbyBodyController.onHalcyonShrineGoldDrain += base.ModifyVisuals;
parentShrineReference.activationDirector.monsterCredit += parentShrineReference.monsterCredit - tierChangeMonsterCreditReduction;
parentShrineReference.activationDirector.SpendAllCreditsOnMapSpawns(parentShrineReference.gameObject.transform);
}
public override void OnExit()
{
base.OnExit();
GoldSiphonNearbyBodyController.onHalcyonShrineGoldDrain -= base.ModifyVisuals;
}
}