Conditions | 2 |
Total Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | from intelligine.cst import TRANSPORTABLE, CARRIED_BY, CARRY |
||
34 | def set_is_carried(self, is_carried, by_obj): |
||
35 | self._is_carried = bool(is_carried) |
||
36 | if self._is_carried: |
||
37 | self._context.metas.value.set(CARRIED_BY, self.get_id(), by_obj.get_id()) |
||
38 | else: |
||
39 | self._context.metas.value.unset(CARRIED_BY, self.get_id()) |
||
40 |