Example #1
0
 def subtract_torment(self, operation):
     operation = self._mutate(operation)
     actor = self._get_targeted_actor(operation)
     actor.torment = floor_at_zero(actor.torment - operation.value)
     self._log_mod_operation(actor, "torment", operation)
     return operation
Example #2
0
 def subtract_popularity(self, operation):
     operation = self._mutate(operation)
     actor = self._get_targeted_actor(operation)
     actor.popularity = floor_at_zero(actor.popularity - operation.value)
     self._log_mod_operation(actor, "popularity", operation)
     return operation
Example #3
0
 def subtract_trouble(self, operation):
     operation = self._mutate(operation)
     actor = self._get_targeted_actor(operation)
     actor.trouble = floor_at_zero(actor.trouble - operation.value)
     self._log_mod_operation(actor, "trouble", operation)
     return operation
Example #4
0
 def subtract_grades(self, operation):
     operation = self._mutate(operation)
     actor = self._get_targeted_actor(operation)
     actor.grades = floor_at_zero(actor.grades - operation.value)
     self._log_mod_operation(actor, "grades", operation)
     return operation