Skip to main content

Breaking Changes

https://github.com/Hub-OS/mod-upgrade-tool

0.72.0

  • Removed field:notify_on_delete() and field: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.Drain and removed Hit.Impact, check your mods for Hit.Impact in lua files and "Impact" in package.toml
  • Renamed defense:block_impact() and defense:impact_blocked() to defense:set_responded() and defense:responded()

0.64.0

  • blocked_by / blocks_flags now 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 requires entity:show_shadow() to display the shadow, it is now visible by default.
  • Direct usage of the global Field table requires . instead of :
    • *:field() deprecated in favor of directly using the Field table.

0.52

  • sprite:use_parent_shader() and sprite:use_root_shader() no longer overrides palette.

0.32

  • player.can_charge_card_func is replaced by player.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.Battle now runs during time freeze, use Lifetime.ActiveBattle for the previous behavior
  • Renamed aux_prop:require_hit_flag() to aux_prop:require_hit_flags()
  • Removed entity:player_hit_state() and entity:player_move_state()
  • Flinch is now mutually exclusive with flinch-like statuses, such as paralyze and freeze
  • PLAYER_ animation prefix changed to CHARACTER_
  • PLAYER_SHOOTING renamed to CHARACTER_SHOOT
    • Related: PLAYER_SWORD has been renamed to CHARACTER_SWING in mods outside of the engine

0.25

  • blocks_flags and blocked_by fields in statuses, replaced by mutual_exclusions
  • Renamed defense_rule.can_block_func to defense_rule.defense_func
  • Renamed defense_rule.filter_statuses_func to defense_rule.filter_func
  • Renamed DefenseJudge to Defense

0.20

  • Renamed TileState.Hidden to TileState.Void
  • Renamed entity:tile_offset() to entity:movement_offset()
  • Split tile_state.change_request_func into tile_state.can_replace_func and tile_state.on_replace_func

0.17

0.13

0.12

  • Actions no longer revert to previous animation state on completion for non Players.
  • Renamed [tile:highlight()] to tile:set_highlight()
  • Renamed component Lifetimes to Lifetime
  • AuxProp increase_/decrease_ effects now add/subtract rather than set final values.

0.11

0.10

0.9

0.3

0.2

  • package_init and package_requires_scripts removed, replaced with package.toml
    • mods/blocks -> mods/augments
    • block:set_mutator() -> function augment_init(augment)
    • charge_boost + attack_boost + rapid_boost in package.toml for blocks
  • For battles: package_build -> battle_init
  • For characters: package_init -> character_init

0.1