Implement emotions

This commit is contained in:
henriquenakashima 2020-09-26 18:24:46 -04:00
parent 08c395cf51
commit 11df4f1164
25 changed files with 369 additions and 40 deletions

View file

@ -0,0 +1,21 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DropEmotionEffect : IBattleEffect
{
private int amount;
private TeamChoice team;
public DropEmotionEffect(int amount, TeamChoice team) {
this.amount = amount;
this.team = team;
}
public void Apply(IBattleEffectResolver resolver) {
resolver.DropEmotion(this);
}
public int Amount {get => this.amount;}
public TeamChoice Team {get => this.team;}
}

View file

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: d8030217c9c617f49898976464cb13a0
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -5,9 +5,11 @@ using UnityEngine;
public class IncreaseMaxEnergyEffect : IBattleEffect
{
private int amount;
private bool immediate;
public IncreaseMaxEnergyEffect(int amount) {
public IncreaseMaxEnergyEffect(int amount, bool immediate) {
this.amount = amount;
this.immediate = immediate;
}
public void Apply(IBattleEffectResolver resolver) {
@ -15,4 +17,5 @@ public class IncreaseMaxEnergyEffect : IBattleEffect
}
public int Amount {get => this.amount;}
public bool Immediate {get => this.immediate;}
}