30 lines
824 B
C#
30 lines
824 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class StatusEffect : IBattleEffect
|
|
{
|
|
private BattleParticipant target;
|
|
private BattleStatus status;
|
|
private int amount;
|
|
|
|
public StatusEffect(BattleParticipant target, BattleStatus status) {
|
|
this.target = target;
|
|
this.status = status;
|
|
this.amount = 1;
|
|
}
|
|
|
|
public StatusEffect(BattleParticipant target, BattleStatus status, int amount) {
|
|
this.target = target;
|
|
this.status = status;
|
|
this.amount = amount;
|
|
}
|
|
|
|
public void Apply(IBattleEffectResolver resolver) {
|
|
resolver.AddStatus(this);
|
|
}
|
|
|
|
public BattleParticipant Target {get => this.target;}
|
|
public BattleStatus Status {get => this.status;}
|
|
public int Amount {get => this.amount;}
|
|
}
|