Implement Meditate
This commit is contained in:
parent
03ca23d484
commit
ceb46f98b2
14 changed files with 207 additions and 28 deletions
26
Assets/Battle/Effects/DrawCardsEffect.cs
Normal file
26
Assets/Battle/Effects/DrawCardsEffect.cs
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
|
||||
public enum TeamChoice {
|
||||
Heroes,
|
||||
Monsters,
|
||||
}
|
||||
|
||||
public class DrawCardsEffect : IBattleEffect
|
||||
{
|
||||
private int amount;
|
||||
private TeamChoice team;
|
||||
|
||||
public DrawCardsEffect(int amount, TeamChoice team) {
|
||||
this.amount = amount;
|
||||
this.team = team;
|
||||
}
|
||||
public void Apply(IBattleEffectResolver resolver) {
|
||||
resolver.DrawCards(this);
|
||||
}
|
||||
|
||||
public int Amount {get => this.amount;}
|
||||
public TeamChoice Team {get => this.team;}
|
||||
}
|
||||
11
Assets/Battle/Effects/DrawCardsEffect.cs.meta
Normal file
11
Assets/Battle/Effects/DrawCardsEffect.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: f3f95b0d797290f478cd7378af9562e1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
18
Assets/Battle/Effects/ModifyInsightEffect.cs
Normal file
18
Assets/Battle/Effects/ModifyInsightEffect.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
|
||||
public class ModifyInsightEffect : IBattleEffect
|
||||
{
|
||||
private int amount;
|
||||
|
||||
public ModifyInsightEffect(int amount) {
|
||||
this.amount = amount;
|
||||
}
|
||||
public void Apply(IBattleEffectResolver resolver) {
|
||||
resolver.ModifyInsight(this);
|
||||
}
|
||||
|
||||
public int Amount {get => this.amount;}
|
||||
}
|
||||
11
Assets/Battle/Effects/ModifyInsightEffect.cs.meta
Normal file
11
Assets/Battle/Effects/ModifyInsightEffect.cs.meta
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 6f8ec4c4da9aecc4589846cb29f4310a
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Add table
Add a link
Reference in a new issue