Skip to content

Commit

Permalink
Release v1.4
Browse files Browse the repository at this point in the history
Changelog:
- Armorsmiths can now sell Named Shields
  • Loading branch information
jcsato committed Jun 7, 2023
1 parent 9e401d4 commit 0f22558
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ Expanded Markets increases the selection of goods available to purchase in settl

**Beast Components:** Settlements with Taxidermists will now occasionally have beast crafting components available for sale. Trophies from the rarest and most dangerous beasts will have a markup, so be prepared to pay up if you want Lindwurm scales or the heart of a Schrat. Beast parts are region specific, so go North for white Unhold fur, South for Serpent scales, etc.

**Named Shields:** Armorsmiths can now sell Named Shields, everybody's favorite.

## Requirements

1) [Modding Script Hooks](https://www.nexusmods.com/battlebrothers/mods/42) (v20 or later)
Expand Down
2 changes: 1 addition & 1 deletion build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ REM NOTE: This is a DEVELOPER script. You don't need this just to play with the

set modname=sato_expanded_markets
set modkitdir=YOUR_MODKIT_BIN_PATH
set version=1.3
set version=1.4

echo.
echo Creating temporary directory...
Expand Down
13 changes: 12 additions & 1 deletion scripts/!mods_preload/!mod_sato_expanded_markets.nut
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
::mods_registerMod("sato_expanded_markets", 1.3, "Sato's Expanded Markets");
::mods_registerMod("sato_expanded_markets", 1.4, "Sato's Expanded Markets");

::mods_queue(null, null, function() {
::SEM_NORTHERN_BEAST_PARTS_LOW <- [
Expand Down Expand Up @@ -282,6 +282,17 @@
]);
}
}

if (_id == "building.armorsmith") {
local shieldList = [];
foreach(i in Const.Items.NamedShields) {
if (Math.rand(1, 100) <= 33)
shieldList.push({ R = 99, P = 2.0, S = i });
}

_list.extend(shieldList);
}

onUpdateShopList( _id, _list );
}
});
Expand Down

0 comments on commit 0f22558

Please sign in to comment.