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
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
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
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