def test_attributes_value_changes(self):
     attr = Attributes({"str": 14})
     attack = MeleeAttack(attributes=attr, base_mod=3)
     assert attack.complete == 5
     attr.str = 12
     assert attack.complete == 4
Beispiel #2
0
 def test_output_skill_rank(self):
     attr = Attributes({"str": 14})
     sk = Skill(name='', attr_cls=attr, related_attribute='str', rank=4, misc_rank=0)
     assert sk.rank == 6
     attr.str = 16
     assert sk.rank == 7