def _set_game_item(self, val):
        if self.build_item:
            self.log.critical('Trying to set game_item when build_item is set!')
            # raise Exception('Cannot set game_item AND build_item')
        else:
            self._game_item = val
This handles setting the game_item attribute.
dataset/ETHPy150Open shinymud/ShinyMUD/src/shinymud/models/item_types.py/ItemType._set_game_item