WXMC/.svn/pristine/2d/2df9c53a87556f1881e724c6c2db618d1055762f.svn-base

18 lines
379 B
Plaintext
Raw Normal View History

2024-12-04 16:18:46 +08:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PHomeBuffEvent_Gem : PHomeBuffEvent
{
public float Ratio;
public float Const;
public override void OnEventStart()
{
if (FromBuff.Unit is PHomePlayer player)
{
player.GemCount = (int)(player.GemCount * (1 + Ratio) + Const);
}
}
}