18 lines
379 B
Plaintext
18 lines
379 B
Plaintext
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);
|
|
}
|
|
}
|
|
}
|