Breaking Changes
https://github.com/Hub-OS/mod-upgrade-tool
0.72.0
- Removed
field:notify_on_delete()andfield:callback_on_delete()
0.68.0
- Removed the Shake status effect, a shake effect will still be applied for hits in time freeze
0.66.0
- Added
Hit.Drainand removedHit.Impact, check your mods forHit.Impactin lua files and"Impact"in package.toml - Renamed
defense:block_impact()anddefense:impact_blocked()todefense:set_responded()anddefense:responded()
0.64.0
blocked_by/blocks_flagsnow applies to individual hits and not when new statuses are processed
0.62.0
- Actions now allow automatic tile reservation by default to fix issues with drag on non-flinching characters, use
action:allow_auto_tile_reservation(false)to disable
0.53
entity:set_shadow()no longer requiresentity:show_shadow()to display the shadow, it is now visible by default.- Direct usage of the global
Fieldtable requires.instead of:*:field()deprecated in favor of directly using theFieldtable.
0.52
sprite:use_parent_shader()andsprite:use_root_shader()no longer overrides palette.
0.32
player.can_charge_card_funcis replaced byplayer.calculate_card_charge_time_func- Entities not "on field" will now appear in tile and field
find_*()methods as long as the entity has spawned and hasn't been deleted
0.28
field:reclaim_column(x)now requires a team:field:reclaim_column(x, team)tile:set_team(team, direction)now requires direction
0.27
Lifetime.Battlenow runs during time freeze, useLifetime.ActiveBattlefor the previous behavior- Renamed
aux_prop:require_hit_flag()toaux_prop:require_hit_flags() - Removed
entity:player_hit_state()andentity:player_move_state() - Flinch is now mutually exclusive with flinch-like statuses, such as paralyze and freeze
PLAYER_animation prefix changed toCHARACTER_PLAYER_SHOOTINGrenamed toCHARACTER_SHOOT- Related:
PLAYER_SWORDhas been renamed toCHARACTER_SWINGin mods outside of the engine
- Related:
0.25
blocks_flagsandblocked_byfields in statuses, replaced bymutual_exclusions- Renamed
defense_rule.can_block_functodefense_rule.defense_func - Renamed
defense_rule.filter_statuses_functodefense_rule.filter_func - Renamed
DefenseJudgetoDefense
0.20
- Renamed
TileState.HiddentoTileState.Void - Renamed
entity:tile_offset()toentity:movement_offset() - Split
tile_state.change_request_funcintotile_state.can_replace_funcandtile_state.on_replace_func
0.17
- Removed
animation:derive_state(), replaced with a new parameter on animation:set_state()
0.13
- Renamed
player_form:set_mugshot_texture_path()-> player_form:set_mugshot_texture()
0.12
- Actions no longer revert to previous animation state on completion for non Players.
- Fixed by defining on_idle_func.
- Renamed [tile:highlight()] to tile:set_highlight()
- Renamed component
Lifetimesto Lifetime - AuxProp
increase_/decrease_effects now add/subtract rather than set final values.
0.11
- Modified
field:find_*functions to search through all spawned entities, not just "hittable" entities.- Artifacts will now appear in field:find_entities()
- entity:hittable() can be utilized in the filter function for previous behavior
- Renamed
player:get_augments()to player:augments() Movement.new()replaced with more specific constructors.- Renamed
player:slide_when_moving()to player:set_slide_when_moving().
0.10
- Renamed
card_properties.meta_classesto card_properties.tags - Renamed
sprite:never_flip(bool?)to sprite:set_never_flip(bool?)
0.9
- Replaced AudioPriority with AudioBehavior
0.3
- Renamed "enemies" folder to "encounters"
- Renamed
battle_inittoencounter_init - Renamed
battlemod category toencounter - Renamed
includetorequire - Removed
is_andget_prefix for direct getters - Renamed
Engineto Resources - Renamed
Engine.stream_music()to Resources.play_music() - Move
Engineturn gauge functions to TurnGauge - Removed
Battle.prefix - Renamed
Battle.CardActionto Action - Renamed
card_properties.shortnametocard_properties.short_name - Renamed
entity:card_action_event()to entity:queue_action() - Renamed
action:get_actor()to action:owner() - Renamed
action:copy_metadata()to action:copy_card_properties()- Replacement / removal is under consideration.
- Renamed
action:set_metadata()to action:set_card_properties()- Replacement / removal is under consideration.
- Renamed
Hit.StuntoHit.Paralyze - Renamed
spell:highlight_tile()to spell:set_tile_highlight() - Removed
tile:is_cracked(),tile:is_hidden(), andtile:is_hole()not tile:is_walkable()can be used wheretile:is_hole()is called
- Renamed
tile:reserve_entity_by_id()to tile:reserve_for_id() - Renamed
TileState.EmptytoTileState.PermaHole - Renamed
MoveActionto Movement - Renamed
entity:raw_move_event()to entity:queue_movement() - Renamed
entity:share_tile()to entity:enable_sharing_tile() - Renamed
entity:set_float_shoe()to entity:ignore_negative_tile_effects() - Renamed
entity:set_air_shoe()to entity:ignore_hole_tiles() - Renamed
entity:get_current_palette()to entity:palette() - Renamed
entity:set_animation(path)to entity:load_animation(path) - Renamed
sprite:show()to sprite:reveal() - Renamed
sprite:enable_parent_shader()to sprite:use_root_shader() - Renamed
animation:refresh(sprite)to animation:apply(sprite) - Moved
entity:shake_camera()to field:shake()- Also accepts game frames instead of seconds
- Renamed
living:toggle_hitbox()to living:enabled_hitbox() - Renamed
living:toggle_counter()to living:set_counterable() - Moved
IntangibleRuleto IntangibleRule - Renamed
Lifetime.BattlesteptoLifetime.Battle
0.2
package_initandpackage_requires_scriptsremoved, replaced with package.toml- mods/blocks -> mods/augments
block:set_mutator()->function augment_init(augment)charge_boost+attack_boost+rapid_boostin package.toml for blocks
- For battles:
package_build->battle_init - For characters:
package_init->character_init
0.1
- entity.on_delete_func
- Requires call to entity:erase(), entity:default_character_delete(), or entity:default_player_delete()
charged_time_table_func-> calculate_charge_time_func- Simplified
Battle.Step.new()+card_action:add_step(step)to card_action:create_step() - Simplified
Battle.Component.new(lifetime)+entity:register_component(component)to entity:create_component(lifetime) - Removed
frames(number), just use the number directly - Removed
make_frame_data(data), just use the data directly - Removed the
dtparam fromentity.on_update_func()