This wiki is a read-only version of the Stardew Valley Wiki. The official editable wiki maintained by ConcernedApe can be found at stardewvalleywiki.com

Changes

Jump to: navigation, search

Modding:Migrate to SMAPI 3.0

178 bytes added, 23:21, 29 December 2018
Event changes: tweak Player event notes
|old events = MineEvents.MineLevelChanged
|new events = PlayerEvents.Warped
|summary = To know whether the player changed mine level, you can check <code>if (e.NewLocation is MineShaft mine)</code>; the new mine level will be <code>mine.mineLevel</code>. Although the new event is still only called for the current player, that may change in a future version; '''make sure to check <tt>e.IsLocalPlayer</tt> if you only want to handle the current player'''.
}}
{{/event
|old events = PlayerEvents.InventoryChanged
|new events = Player.InventoryChanged
|summary = Mostly equivalent. The event arguments changed type, but should be straightforward to migrate. Although the new event is still only called for the current player, that will likely may change in a future version; '''make sure to check <tt>e.IsLocalPlayer</tt> if you only want to handle the current player'''.
}}
{{/event
|old events = PlayerEvents.LeveledUp
|new events = Player.LevelChanged
|summary = Mostly equivalent. The event arguments changed type, but should be straightforward to migrate. Although the new event is still only called for the current player, that will likely may change in a future version; '''make sure to check <tt>e.IsLocalPlayer</tt> if you only want to handle the current player'''.
}}
{{/event
|old events = PlayerEvents.Warped
|new events = Player.Warped
|summary = Mostly equivalent. The event arguments changed type, but should be straightforward to migrate. Although the new event is still only called for the current player, that will likely may change in a future version; '''make sure to check <tt>e.IsLocalPlayer</tt> if you only want to handle the current player'''.
}}
{{/event
Protected, translators
5,421
edits

Navigation menu