Pit of Goblin
Install with App

Details

Latest version
0.1.0
Last Updated
First Uploaded
Downloads
4
Likes
0
Size
171KB
Dependants

Categories

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; no shop code. Built on POGLib.

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

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.
  • With POG Mod Check, players who both have POGShops are asked to have the same version.

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 floor 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. ("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.

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

Status of 0.1.0

Shown in the game (build 26668562): a mod's new slot in the hub's starter shop, its item chosen and stocked; over LAN, a client sees the new slot, buys from it and passes the item on. A mod file with add is refused. "after": "left" | "right" and the floor look were shown on the host; not yet checked on a client. Not checked yet: other scenes (InBetween, DarkBurg), sellers the game draws only on some visits, dungeon merchants.

Source and issues: github.com/largoz/POGLib

Thunderstore development is made possible with ads. Please consider making an exception to your adblock.