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.
| Last updated | 4 hours ago |
| Total downloads | 2 |
| Total rating | 0 |
| Categories | Libraries |
| Dependency string | Largo-POGShops-0.1.0 |
| Dependants | 0 other packages depend on this package |
This mod requires the following mods to function
LavaGang-MelonLoader
The World's First Universal Mod Loader for Unity Games compatible with both Il2Cpp and Mono
Preferred version: 0.7.2Largo-POGLib
A library for content mods: new items with their own model and icon that work in co-op. Install it when a mod asks for it; it adds no items of its own.
Preferred version: 0.1.0README
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