You are viewing a potentially older version of this package. View all versions.
Largo-POGShops-0.1.3 icon

POGShops

Lets mods sell their items in the game's shops: a mod places its own slots beside a seller's goods with a small data file. Only the host needs the shop files. Built on POGLib.

Date uploaded a day ago
Version 0.1.3
Download link Largo-POGShops-0.1.3.zip
Downloads 7
Dependency string Largo-POGShops-0.1.3

This mod requires the following mods to function

LavaGang-MelonLoader-0.7.2 icon
LavaGang-MelonLoader

The World's First Universal Mod Loader for Unity Games compatible with both Il2Cpp and Mono

Preferred version: 0.7.2
Largo-POGLib-0.1.3 icon
Largo-POGLib

A library for content mods: new items with their own model and icon that work in co-op, and new clothes for goblins. Install it when a mod asks for it; it adds nothing of its own.

Preferred version: 0.1.3

README

POGShops

Lets mods sell their items in Pit of Goblin's shops. A mod places its own slots next to a seller's goods with a small data file, pogshop.json, and may have dungeon merchants of its own. Built on POGLib.

Players: install it when a mod lists it as a dependency. On its own it places no slots and brings no merchants.

Multiplayer

  • The host chooses what every slot sells; the other players see it through the game. Only the host needs the mods' shop files.
  • A new slot is a copy of the game's own shop slot, so every player sees it. A player with POGShops gets its price tag where the host has it; a player without it may see the tag in the wrong place.
  • A mod's dungeon merchant is the host's choice too; what the other players see of them comes through the game.
  • With POG Mod Check, players who both have POGShops are asked to have the same version.

Dungeon merchants: the host's settings

A mod's merchant can keep a dungeon merchant's stall instead of the game's own. All mods together take at most 75% of the stalls, so the game's own merchants keep at least a quarter; a mod asks for at most 25%. With POG Config (optional) the host changes both on the page "POG Shops": the limit for all mods and a line per mod (as the mod asks, off, or a percentage). Without it the same numbers are in UserData/MelonPreferences.cfg, under [POGLib_Shops] and [POGLib_Shops_Merchants].

For mod developers

Give your item a ShopCost (POGLib), then ship pogshop.json in your package:

{
  "format": 1,
  "mod": "BerryMod",
  "slots": [
    {
      "id": "berry_stand",
      "scene": "PitOfGoblin_Lobby",
      "seller": "vanilla:NPC_ShopKeeperShort_Lobby_StarterShop",
      "after": "left",
      "pool": [ { "item": "GlowBerry", "weight": 10 }, { "item": "nothing", "weight": 2 } ]
    }
  ]
}
  • "after": "left" or "right" puts the slot at that end of the seller's row of goods, as a customer facing the seller sees it, on the ground like the seller's own goods. No coordinates; it names no slot of the game, so a game update that renames slots does not break it. "pos" and "rot" shift and tilt it from there; "anchor" + "pos" place a slot anywhere instead.
  • The slot belongs to the seller: the seller's faction sets the price, it can be stolen from, and it is free when the seller dies. The price is the item's ShopCost.
  • pool: your items with weights; "nothing" sometimes leaves the slot empty.

In 0.1 a mod's file places only its own slots (and says how its items stand on a counter). It cannot put items into the game's slots or another mod's, change what others sell, or add dungeon merchants: such a file is refused, with each reason in the log. A host can do those in a file of its own in UserData/POGLib/Shops.

Dungeon merchants are added from code. One mod is one class: the host draws the class first, then a merchant in it, so a mod with ten merchants comes up as often as a mod with one.

ShopsApi.AddMerchants(new MerchantClass
{
    ModId = "BerryMod", Title = "Berry Traders", Chance = 0.1,        // of the stalls below; at most 0.25
    Merchants = { new MerchantDef
    {
        Id = "trader", Weight = 3,                                    // against this class's other merchants only
        Stalls = { "Curiosa", "Antique" },
        Goods = { new PoolEntry { Item = "GlowBerry", Weight = 2 } },
    } },
});

Full guide, ids and the host's own files: SHOPS.md.

Status of 0.1.3

Shown in the game (the host on build 26791993), on a host and a client over LAN: a mod's new slot at the end of the hub's starter shop's row, on the floor; the client sees it where the host does, buys from it and passes the item on. A mod file with add is refused. Both ends of the row are found for every seller of the hub, InBetween and DarkBurg (from a dump of each scene); in the game, slots were looked at in the hub. The automatic place is a start: correct it with "pos" and "rot". Dungeon merchants, on a host and a client over LAN: a mod's merchant at the Curiosa stall with the same goods and prices for both; each buys, a thing too dear is refused, the merchant's death costs no reputation and leaves the goods to take. A client without any of the mods buys there too and sees the merchant in what its game has. On a host: a merchant that cannot come left out, the limit at 0% (the game's own merchant and goods), the settings page. The odds are held by unit tests. Not checked yet: dungeon merchants at the other five stalls; a player who joins inside a dungeon; slots in InBetween and DarkBurg looked at in the game.

Source and issues: github.com/largoz/POGLib

CHANGELOG

Changelog

0.1.4 (2026-11-26)

  • Goods that come together (With in a dungeon merchant's goods): a crossbow that never stands without its bolts.
  • A place that does not run out (Endless; "endless": true in a shop file's pool): every buyer gets a copy, as with the bread of the starter shop.
  • A merchant's name (Name) for the host and every player with POGShops, also one who joins later; a weapon they draw when hurt (LeftHand) and a thing they hold (RightHand), where the seller's own came off with a look.
  • A mod's goods at the Smith's stall did not run out in one of its places (since 0.1.2), because the game's own there does not.
  • Needs POGLib 0.1.3. Host and players need the same POGShops, as before.

0.1.3 (2026-11-25)

  • An empty place had a price tag of "0" for everyone but the host (since 0.1.0: "nothing" in a pool, a place with no item left for it, a dungeon merchant with fewer goods than places). The host now hides it for every player, also for one without the mod and for one who joins later. Only the host needs the update.

0.1.2 (2026-11-25)

  • Dungeon merchants of mods, by classes (ShopsApi.AddMerchants): one mod is one class; a class is drawn first, by its chance, then a merchant inside it. All mods together take at most 75% of the stalls, a mod asks for at most 25%. The host sets the ceiling and each mod's chance on a POG Config page (POG Config is optional).
  • A host's own file: sellers no longer changes the game's list of who stands at the entrance, so the dungeon of a seed is the game's own again; its weight is now the weight inside the file's class.
  • Needs POGLib 0.1.2. Nothing changes where no mod adds a merchant.

0.1.1 (2026-11-23)

  • "after": "right" placed nothing at some sellers (Curiosa, Pitaxas: "the slot is in the middle of the row"); the row is now found once for both its ends.
  • A seller's row is found even when one of its slots stands far away (the Darkburg smith's item rack).
  • With "after", "pos" shifts the slot from its automatic place (in its own axes: x sideways, y up, z forward) and "rot" turns and tilts it. The automatic place is a start; past the end of a table there may be no table.
  • Needs POGLib 0.1.1 (mod items come back from saves).

0.1.0 (2026-11-22)

First release.

  • A mod places its own shop slots at the game's sellers with a pogshop.json file: "after": "left" or "right" puts a slot at that end of the seller's row of goods, on the floor like the seller's own.
  • Each slot has its own pool of items with weights; the price is the item's ShopCost.
  • Only the host needs the shop files; clients learn about new slots from the host.
  • In 0.1 a mod's file places only its own slots; a host's own file in UserData/POGLib/Shops can do more.