MirUlr / dsa_calculator

Some classes for handling the 3d20 test of the the german pen and paper system in a streamlined way.
Creative Commons Zero v1.0 Universal
0 stars 0 forks source link

9 update values #29

Closed MirUlr closed 3 years ago

MirUlr commented 3 years ago

Hero and Twinkle are provided with methods to update thier character values. Let's see examples on Mary Sue: mary.update_attrubute('Mut', 2) raises her courage by 2. mary.update_talent('Stoffbearbeitung', 3) raises her ability for sewing by 3. Assuming Mary to be capable to cast spells: mary.add_spelllike() initiate the command line dialog which is also used when initializing an instance of Twinkle. mary.update_spelllike('OP', 25) raises the skill value of the OP spell to a proper value (plus 25 to the maximum of 25). When Mary remeber the fact, that she is awesome enough without supernatural abilities, she uses mary.delete_spelllike('OP') to remove the spell after confirming this decision.