From 0ff206773aaa9a363b23bcd10484a83cc386f830 Mon Sep 17 00:00:00 2001
From: RickGrymes <81042907+RickGrymes@users.noreply.github.com>
Date: Sun, 31 May 2026 10:39:27 -0500
Subject: [PATCH] Add Megaton traders and trader kinds
Add Megaton settlement support and inventories. FCP_Wastelander_Factions.xml was updated to register a named settlement 'Megaton' with five traders (Craterside Supply, Brass Lantern, Megaton Clinic, Moriarty's Saloon, Water Treatment). A new TraderKindDefs_Megaton_Shops.xml defines the corresponding TraderKindDef entries and detailed stockGenerators for each shop (resources, food, weapons, apparel, medical chems, drugs, building materials, buying behavior, and optional MayRequire blocks for modular content). This wires up in-game shops and their stock for the Megaton settlement.
---
.../FactionDefs/FCP_Wastelander_Factions.xml | 31 +
.../TraderKindDefs_Megaton_Shops.xml | 565 ++++++++++++++++++
2 files changed, 596 insertions(+)
create mode 100644 1.6/Defs/TraderKindDefs/TraderKindDefs_Megaton_Shops.xml
diff --git a/1.6/Defs/FactionDefs/FCP_Wastelander_Factions.xml b/1.6/Defs/FactionDefs/FCP_Wastelander_Factions.xml
index 443117d..f554212 100644
--- a/1.6/Defs/FactionDefs/FCP_Wastelander_Factions.xml
+++ b/1.6/Defs/FactionDefs/FCP_Wastelander_Factions.xml
@@ -96,6 +96,37 @@
World/WorldObjects/DefaultSettlement
+
+
+
+
+ Megaton
+
+
+ Craterside Supply
+ FCP_Trader_Megaton_CratersideSupply
+
+
+ Brass Lantern
+ FCP_Trader_Megaton_BrassLantern
+
+
+ Megaton Clinic
+ FCP_Trader_Megaton_Clinic
+
+
+ Moriarty's Saloon
+ FCP_Trader_Megaton_MoriartysSaloon
+
+
+ Water Treatment
+ FCP_Trader_Megaton_WaterTreatment
+
+
+
+
+
+
diff --git a/1.6/Defs/TraderKindDefs/TraderKindDefs_Megaton_Shops.xml b/1.6/Defs/TraderKindDefs/TraderKindDefs_Megaton_Shops.xml
new file mode 100644
index 0000000..1e5145c
--- /dev/null
+++ b/1.6/Defs/TraderKindDefs/TraderKindDefs_Megaton_Shops.xml
@@ -0,0 +1,565 @@
+
+
+
+
+
+
+
+
+ FCP_Trader_Megaton_CratersideSupply
+ Craterside Supply
+
+
+
+
+ Silver
+ 1500~3000
+
+
+ ComponentIndustrial
+ 20~50
+
+
+ Steel
+ 200~500
+
+
+ Cloth
+ 100~300
+
+
+ MedicineIndustrial
+ 10~25
+
+
+ Chemfuel
+ 50~200
+
+
+
+
+
+ FCP_Food_Cram
+ FCP_Food_Blamco_Original_Flavor
+ FCP_Food_Dandy_Boy_Apples
+ FCP_Food_Fancy_Lad_Snack_Cakes
+ FCP_Food_Insta_Mash
+
+
+
+
+
+ Foods
+ 2~4
+ 200~500
+
+
+
+
+
+ FCP_Gun_10mm_Pistol
+ FCP_Gun_Chinese_Pistol
+ FCP_Gun_32_Pistol
+ FCP_Gun_Combat_Shotgun
+ FCP_Gun_SawnOff_Shotgun
+ FCP_Gun_32_Hunting_Rifle
+ FCP_Gun_Combat_Rifle_Standard
+ FCP_Gun_10mm_SMG
+
+
+
+
+
+
+ FCP_Gun_Laser_Pistol
+ FCP_Gun_Laser_Rifle
+ FCP_Gun_Plasma_Pistol
+
+
+
+
+
+
+ FCP_Melee_Bat
+ FCP_Melee_Bat_Aluminum
+ FCP_Melee_Pool_Cue
+ FCP_Melee_Rebar_Club
+ FCP_Melee_Sledgehammer
+ FCP_Melee_Scrap_Machete
+ FCP_Melee_Ripper
+
+
+
+
+
+
+ FCP_Unarmed_Boxing_Glove
+ FCP_Unarmed_Power_Fist
+ FCP_Unarmed_Zap_Glove
+
+
+
+
+
+ WeaponRanged
+ 3~6
+
+
+ WeaponMelee
+ 2~4
+
+
+
+
+
+ FCP_Apparel_Wasteland_Wanderer_Outfit
+ FCP_Apparel_Caravaneer_Outfit
+ FCP_Apparel_Merc_Adventurer_Outfit
+ FCP_Apparel_Prospector_Outfit
+ FCP_Apparel_Surveyor_Outfit
+ FCP_Apparel_Field_Hand_Female_Outfit
+ FCP_Apparel_Field_Hand_Male_Outfit
+ FCP_Apparel_Settler_Female_Outfit
+ FCP_Apparel_Settler_Male_Outfit
+ FCP_Apparel_Leather_Coat
+ FCP_Apparel_Red_Rocket_Overalls
+
+
+
+
+
+ BasicClothing
+ 4~8
+
+
+ Clothing
+ 2~4
+
+
+
+
+
+ FCP_Apparel_Leather_Armor
+ FCP_Apparel_Metal_Armor
+ FCP_Apparel_Combat_Armor
+
+
+
+
+
+
+ FCP_Apparel_Combat_Helmet
+ FCP_Apparel_Sheriff_Hat
+ FCP_Apparel_Wrapped_Cap
+ FCP_Apparel_Gasmask_Goggles
+
+
+
+
+
+ Armor
+ 2~4
+ 1~2
+
+
+
+
+
+ FCP_Chem_Stimpak
+ FCP_Chem_Diluted_Stimpak
+ FCP_Chem_RadX
+ FCP_Chem_Radaway
+
+
+
+
+
+ Drugs
+ 2~3
+ 300~800
+
+
+
+
+
+ Art
+
+
+ Manufactured
+
+
+ Armor
+
+
+ Drugs
+
+
+ Medicine
+
+
+ ResourcesRaw
+
+
+
+
+
+
+
+
+ FCP_Trader_Megaton_BrassLantern
+ Brass Lantern
+
+
+
+
+ Silver
+ 800~1500
+
+
+
+
+ Beer
+ 20~60
+
+
+
+
+
+ FCP_Nuka_Cola
+ FCP_Nuka_Cola_Classic
+ FCP_Nuka_Cola_Cherry
+
+
+
+
+
+
+ FCP_Food_Cram
+ FCP_Food_Blamco_Original_Flavor
+ FCP_Food_Dandy_Boy_Apples
+ FCP_Food_Insta_Mash
+
+
+
+
+
+
+ FCP_Raw_Mutfruit
+ FCP_Raw_Tato
+ FCP_Raw_Razorgrain
+ FCP_Raw_Maize
+ FCP_Raw_Carrot
+ FCP_Raw_Food_Banana_Yucca
+ FCP_Raw_Prickly_Pear
+ FCP_Raw_Melon
+ FCP_Raw_Cranberry
+
+
+
+
+
+
+ FCP_Meat_Varmint
+ FCP_Meat_Herptile
+ FCP_Meat_Crab
+ FCP_Meat_Poultry
+ FCP_Meat_Bug
+ FCP_Egg_Rad_Chicken_Unfertilized
+ FCP_Egg_Gecko_Unfertilized
+
+
+
+
+
+
+ FCP_Food_Brahmin_Pot_Pie
+ FCP_Food_Crispy_Wings
+ FCP_Food_Meat_On_A_Stick
+ FCP_Food_Prime_Meat_Steak
+ FCP_Food_Prime_Meat_Steak_With_Corn_And_Tatos
+ FCP_Food_Sausages
+ FCP_Food_Sweet_Rolls
+ FCP_Food_Noodle_Cup
+ FCP_Food_Chicken_Noodle_Cup
+
+
+
+
+
+ Foods
+ 5~9
+ 600~1500
+
+
+ FoodRaw
+ 3~5
+ 300~800
+
+ EggsFertilized
+
+
+
+ FoodMeals
+ 2~3
+ 15~40
+
+
+
+ Pemmican
+ Chocolate
+
+
+
+
+
+
+ FoodRaw
+
+
+ PlantMatter
+
+
+ MeatRaw
+
+
+ AnimalProductRaw
+
+
+
+
+
+
+
+
+ FCP_Trader_Megaton_Clinic
+ Megaton Clinic
+
+
+
+
+ Silver
+ 1000~2000
+
+
+
+
+ Medicine
+ 2~3
+ 25~70
+
+
+
+
+ Penoxycyline
+ 5~15
+
+
+
+
+
+ FCP_Chem_Stimpak
+ FCP_Chem_Diluted_Stimpak
+ FCP_Chem_Ultra_Stimpak
+
+
+
+
+
+
+ FCP_Chem_MedX
+ FCP_Chem_RadX
+ FCP_Chem_Radaway
+ FCP_Chem_Hydra
+ FCP_Chem_Doctors_Bag
+ FCP_Chem_Blood_Pack
+ FCP_Chem_Healing_Powder
+
+
+
+
+
+
+ FCP_Chem_Addictol
+ FCP_Chem_Fixer
+
+
+
+
+
+ Drugs
+ 3~5
+ 500~1200
+
+
+
+
+
+ Drugs
+
+
+ Medicine
+
+
+
+
+
+
+
+
+ FCP_Trader_Megaton_MoriartysSaloon
+ Moriarty's Saloon
+
+
+
+
+ Silver
+ 1200~2500
+
+
+
+
+ Beer
+ 30~80
+
+
+ Chocolate
+ 10~30
+
+
+
+
+
+ FCP_Nuka_Cola
+ FCP_Nuka_Cola_Classic
+ FCP_Nuka_Cola_Cherry
+ FCP_Nuka_Cola_Grape
+ FCP_Nuka_Cola_Orange
+
+
+
+
+
+
+ FCP_Chem_Jet
+ FCP_Chem_Ultrajet
+ FCP_Chem_Rocket
+ FCP_Chem_Psycho
+ FCP_Chem_Buffout
+ FCP_Chem_Mentats
+ FCP_Chem_Berry_Mentats
+ FCP_Chem_Grape_Mentats
+ FCP_Chem_Orange_Mentats
+ FCP_Chem_Party_Time_Mentats
+ FCP_Chem_Turbo
+ FCP_Chem_Slasher
+ FCP_Chem_Steady
+ FCP_Chem_Cateye
+ FCP_Chem_MedX
+ FCP_Chem_Day_Tripper
+ FCP_Chem_X_Cell
+ FCP_Chem_Daddy_O
+ FCP_Chem_Rebound
+
+
+
+
+
+ Drugs
+ 5~8
+ 1000~2200
+
+
+
+
+
+ FCP_Food_Meat_On_A_Stick
+ FCP_Food_Sausages
+ FCP_Food_Sweet_Rolls
+
+
+
+
+
+ FoodMeals
+ 1~2
+ 10~25
+
+
+
+
+
+ Drugs
+
+
+
+
+
+
+
+
+ FCP_Trader_Megaton_WaterTreatment
+ Water Treatment
+
+
+
+
+ Silver
+ 800~1500
+
+
+
+
+
+ Steel
+ WoodLog
+ Plasteel
+ ComponentIndustrial
+ ComponentSpacer
+
+
+
+
+
+ ResourcesRaw
+ 3~5
+ 400~900
+
+
+ Manufactured
+ 2~4
+ 300~700
+
+
+
+
+ Textiles
+ 2~3
+ 200~500
+
+
+
+
+ Chemfuel
+ 50~150
+
+
+
+
+
+ ResourcesRaw
+
+
+ Manufactured
+
+
+ Textiles
+
+
+ Art
+
+
+
+
+
+
+