-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEffect_Notes.txt
More file actions
26 lines (20 loc) · 886 Bytes
/
Copy pathEffect_Notes.txt
File metadata and controls
26 lines (20 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Effects should have:
- effect type (enum, determining what it does)
- duration
- amount (scales with level, probably)
- some way to identify who it's affecting
Therefore, should also have the following methods:
Influences Players:
- beforeRound (happens at the begining of the round, before anything else)
- afterRound (happens at the end of the round, after everything else)
- (flat damage should usually be this, except in rare cases.)
- applyToDefense (applies to player damage)
- (i.e.
Influences Characters:
- beforeAttack (happens right before attack)
- afterAttack (happens right after attack)
- applyToAttack (applies to character damage directly)
- (i.e. opponent does 20% less damage)
- applyToNewEffect (happens right before new effect is created)
Display:
- make a EffectInfoDisplay class, which swaps with PlayerInfoDisplay