using System.Collections; using System.Collections.Generic; using UnityEngine; public class Starvation : Modifier_Template { public Starvation(float Value){ Attribute = Value; } //By how much or what percantage does the modifier change the base value private float attribute; public override float Attribute { get { return attribute; } set { attribute = value; } } public override void AttributeChange(Player_Manager Player) { Player.current_Health_Level -= attribute; //Subtracts 5 health per tick } public override void EndChange(Player_Manager Player){ //Do Nothing } public override bool ConditionMet(Player_Manager Player) { if(Player.current_Hunger_Level < 50) { return (true); } else { return (false); } } }