Skip to content

Latest commit

 

History

History
14 lines (13 loc) · 1017 Bytes

02.-Migration-guide.md

File metadata and controls

14 lines (13 loc) · 1017 Bytes

Migration guide

This guide lists general differences between version 0.9.8 and version 1.0.0+. It's not an exhaustive list; please refer to API documentation for more detailed information.

0.9.8- 1.0.0+
SMODS.INIT Removed. Move all code inside SMODS.INIT to top-level scope
SMODS.Deck SMODS.Back
SMODS.Sprite SMODS.Atlas
SMODS.Tarot, SMODS.Planet, SMODS.Spectral SMODS.Consumable
slug key
SMODS.Joker:new(name, slug, ...):register() SMODS.Joker { key = 'key', name = 'Name', ... }
SMODS.findModByID('id') SMODS.current_mod (available during load) / SMODS.Mods['id']
loc_def() loc_vars() - overhauled and more consistent interface
G.localization.descriptions.Foo.bar = baz
function SMODS.current_mod.process_loc_text()
  G.localization.descriptions.Foo.bar = baz
end