Boost value by some percentage
(self, attributeName, boostFactor, skill=None, **kwargs)
| 562 | preResMultiplier, multiplier, multiplier != 1) |
| 563 | |
| 564 | def boost(self, attributeName, boostFactor, skill=None, **kwargs): |
| 565 | """Boost value by some percentage""" |
| 566 | if skill: |
| 567 | boostFactor *= self.__handleSkill(skill) |
| 568 | |
| 569 | # We just transform percentage boost into multiplication factor |
| 570 | self.multiply(attributeName, 1 + boostFactor / 100.0, **kwargs) |
| 571 | |
| 572 | def force(self, attributeName, value, **kwargs): |
| 573 | """Force value to attribute and prohibit any changes to it""" |
no test coverage detected