Renpy Editor Save Patched [ Authentic | BREAKDOWN ]

init python: import renpy

init python: class InventoryItem(object): def __init__(self, item_id, qty): self.item_id = item_id self.qty = qty # runtime only attribute self._cached_sprite = None renpy editor save patched

init python: SAVE_FORMAT_VERSION = 3 # bump when you change serialization format renpy editor save patched

def patched_make_save_name(slot): prefix = get_save_prefix() return prefix + (orig_make_save_name(slot) if orig_make_save_name else "save%03d" % slot) renpy editor save patched

def __getstate__(self): return {'item_id': self.item_id, 'qty': self.qty}