Skip to content

Releases: Xerren09/ContentWarningShopAPI

V1.2

08 Feb 20:08
Compare
Choose a tag to compare
  • DLLs are now correctly versioned
  • Added default value constructor to SynchronisedMetadata
  • SynchronisedMetadata now implements IDisposable
    • Disconnect() is now obsolete but calls Dispose()
  • Added LobbyHosted event to SynchronisedMetadata
    • Invoked when the local player successfully creates a new lobby
    • Use this to overwrite any remnant settings from a previous lobby
  • ShopItem now correctly uses localised item names whenever available
  • Items registered to the shop via the mod will now be considered when spawning random items in the Old World
    • For an item to be eligible, spawnable must be true and itemType must be Item.ItemType.Tool

Important

Some ShopLocalisation consts were changed to static fields. Mods compiled against v1.2+ will not work with lower versions, but mods compiled against previous versions will have no issues.

See the readme for setup and usage instructions.

V1.1.0

23 Jan 19:11
8a9a9b0
Compare
Choose a tag to compare

Fixed an issue where all synchronisation broke after leaving a lobby and joining a new one in the same session.

Added UpdateItemPrice method. Use this to update the price of items anytime during a game, and they'll be synchronised between players.
- This will also reload the store, so the current cart gets reset.

Removed mistakenly marked static fields from SynchronisedMetadata<T>. These are now instance fields:

public static bool InLobby -> public bool InLobby
public static bool IsHost -> public bool IsHost

See the readme for setup and usage instructions.

v1.0.2

19 Jan 20:54
Compare
Choose a tag to compare

Fixes an issue where item tooltips weren't correctly parsed if the default fallback was set.

See the readme for setup and usage instructions.

v1.0.1

18 Jan 22:04
Compare
Choose a tag to compare

This release contains a small fix to the tooltip localisation patch (Item.GetTootipData) for when tooltips are set to null. This is a bug with unity, as if you set the tooltips in the editor, they are not serialised correctly.

To further mitigate this, added an extension method to items (SetDefaultTooltips) that you can use to set initial default tooltips.

See the readme for setup and usage instructions.

v1.0.0

17 Jan 00:35
Compare
Choose a tag to compare

First release of the mod. See the readme for setup and usage instructions.