adjusted skill contest params to allow for easier manual construction
This commit is contained in:
parent
309068ef71
commit
cd53bb81f9
|
@ -14,7 +14,11 @@ class SkillContestParams(object):
|
||||||
defStats = []
|
defStats = []
|
||||||
override = None
|
override = None
|
||||||
|
|
||||||
def __init__(self, atkAction:AtkAction, defAction:DefAction, situation:Situations=Situations.EvenStrength):
|
def __init__(self, atkStats:list=[], defStats:list=[]):
|
||||||
|
self.atkStats = atkStats
|
||||||
|
self.defStats = defStats
|
||||||
|
|
||||||
|
def actionCheck(self, atkAction:AtkAction, defAction:DefAction, situation:Situations=Situations.EvenStrength):
|
||||||
"""Determines which skills to test, and how strongly."""
|
"""Determines which skills to test, and how strongly."""
|
||||||
if situation == Situations.EvenStrength:
|
if situation == Situations.EvenStrength:
|
||||||
result = evenTable[atkAction.value][defAction.value]
|
result = evenTable[atkAction.value][defAction.value]
|
||||||
|
|
Loading…
Reference in a new issue