Implement emotions
This commit is contained in:
parent
08c395cf51
commit
11df4f1164
25 changed files with 369 additions and 40 deletions
21
Assets/Battle/Effects/DropEmotionEffect.cs
Normal file
21
Assets/Battle/Effects/DropEmotionEffect.cs
Normal 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;}
|
||||
}
|
||||
11
Assets/Battle/Effects/DropEmotionEffect.cs.meta
Normal file
11
Assets/Battle/Effects/DropEmotionEffect.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: d8030217c9c617f49898976464cb13a0
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -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;}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue