Files
2016-03-06 20:52:14 +01:00

172 lines
6.5 KiB
Plaintext

/datum/trader/generic
// completely randomised generic trader
hiketolerance = 20
base_patience = list(4,20)
chance_leave = 33
chance_arrive = 33
max_goods_buy = 5
max_goods_sell = 3
base_goods_buy = list(/datum/commodity/trader/generic/anyore,
/datum/commodity/trader/generic/herbs,
/datum/commodity/trader/generic/electronics,
/datum/commodity/trader/generic/anyfood,
/datum/commodity/trader/generic/shipcomponents,
/datum/commodity/trader/generic/jumpsuits)
base_goods_sell = list(/datum/commodity/trader/generic/sheetmetal,
/datum/commodity/trader/generic/rcd_ammo,
/datum/commodity/trader/generic/fabric,
/datum/commodity/trader/generic/telecrystal,
/datum/commodity/trader/generic/glowstick)
/*
/datum/commodity/trader/synthmodule/bacteria,
/datum/commodity/trader/synthmodule/virii,
/datum/commodity/trader/synthmodule/parasite,
/datum/commodity/trader/synthmodule/fungi,
/datum/commodity/trader/synthmodule/gmcell,
/datum/commodity/trader/synthmodule/upgrader)
*/
New()
..()
var/pickfirstname = pick("Honest","Fair","Merchant","Trader","Kosher","Real Deal","Dealer","Sketchy","100%","Sassy","Zesty")
var/picklastname = pick(last_names)
src.name = "[pickfirstname] [picklastname]"
src.hiketolerance = rand(2,4)
src.hiketolerance *= 10
crate_tag = "TDR[rand(100,999)]"
// Traders are selling these things
/datum/commodity/trader/generic/sheetmetal
comname = "Sheet Metal"
comtype = /obj/item/sheet/steel
amount = 200
price_boundary = list(5,9)
possible_names = list("I'm selling sheets of construction-grade steel.",
"I'm selling sheets of steel. Below market price, guaranteed!")
/datum/commodity/trader/generic/rcd_ammo
comname = "RCD Charges"
comtype = /obj/item/rcd_ammo
amount = 15
price_boundary = list(200,700)
possible_names = list("We have RCD ammunition for sale.",
"We have charges for RCD devices available for a good price!")
/datum/commodity/trader/generic/fabric
comname = "Cloth Fabric"
comtype = /obj/item/raw_material/fabric
price_boundary = list(5,7)
possible_names = list("We have lots of cloth for sale. Good for making clothes with.",
"We have a great deal of cloth we need to shift soon, so please buy it!")
/datum/commodity/trader/generic/telecrystal
comname = "Telecrystal"
comtype = /obj/item/raw_material/telecrystal
amount = 20
price_boundary = list(750,1200)
possible_names = list("We have a limited amount of telecrystal available for purchase.",
"We have raw telecrystal stones and no facilities to make use of them, so we're selling them instead.")
/datum/commodity/trader/generic/glowstick
comname = "Glowstick"
comtype = /obj/item/device/glowstick
amount = 20
price_boundary = list(8,20)
possible_names = list("We have a number of glowsticks available for purchase.",
"We have come across some glowstick lighting supplies and have no use for them. Please buy them!")
/datum/commodity/trader/synthmodule
comname = "Synth-O-Matic module"
comtype = /obj/item/synthmodule
desc = "A synth-o-matic module."
price_boundary = list(7000, 11000)
possible_names = list("We have some Synth-O-Matic upgrades for sale.",
"We recently salvaged a couple of Synth-O-Matic machines, and we cannot make use of these spare parts.")
/datum/commodity/trader/synthmodule/vaccine
comname = "Synth-O-Matic vaccine module"
comtype = /obj/item/synthmodule/vaccine
/datum/commodity/trader/synthmodule/upgrader
comname = "Synth-O-Matic efficiency module"
comtype = /obj/item/synthmodule/upgrader
/datum/commodity/trader/synthmodule/assistant
comname = "Synth-O-Matic assistant module"
comtype = /obj/item/synthmodule/assistant
/datum/commodity/trader/synthmodule/synthesizer
comname = "Synth-O-Matic synthesizer module"
comtype = /obj/item/synthmodule/synthesizer
/datum/commodity/trader/synthmodule/virii
comname = "Synth-O-Matic virus module"
comtype = /obj/item/synthmodule/virii
/datum/commodity/trader/synthmodule/bacteria
comname = "Synth-O-Matic bacterium module"
comtype = /obj/item/synthmodule/bacteria
/datum/commodity/trader/synthmodule/fungi
comname = "Synth-O-Matic fungus module"
comtype = /obj/item/synthmodule/fungi
/datum/commodity/trader/synthmodule/parasite
comname = "Synth-O-Matic parasite module"
comtype = /obj/item/synthmodule/parasite
/datum/commodity/trader/synthmodule/gmcell
comname = "Synth-O-Matic great mutatis cell module"
comtype = /obj/item/synthmodule/gmcell
/datum/commodity/trader/synthmodule/radiation
comname = "Synth-O-Matic irradiation module"
comtype = /obj/item/synthmodule/radiation
// Traders want these things
/datum/commodity/trader/generic/anyore
comname = "Ore"
comtype = /obj/item/raw_material/
price_boundary = list(20,120)
possible_names = list("I'm looking to buy any kind of ore you might have.",
"Our ore supplies are critically low - i'll buy any kind of ore for this price.")
/datum/commodity/trader/generic/anyfood
comname = "Food"
comtype = /obj/item/reagent_containers/food/snacks
price_boundary = list(10,100)
possible_names = list("We're ferrying food to the outer colonies, so sell us any extra you have.",
"An accident has lost us most of our food supplies, so we're willing to buy any you may have.")
/datum/commodity/trader/generic/herbs
comname = "Medical Herbs"
comtype = /obj/item/plant/herb/
price_boundary = list(20,150)
possible_names = list("I'll buy any medical herbs you may have.",
"I need to restock on medical herbs. I'm willing to buy them from you for a good price.")
/datum/commodity/trader/generic/electronics
comname = "Electrical Components"
comtype = /obj/item/electronics/
price_boundary = list(10,85)
possible_names = list("I need to buy electrical components for a project.",
"We're rather short on electrical components needed for repairs. We're willing to pay well.")
/datum/commodity/trader/generic/shipcomponents
comname = "Ship/Pod Components"
comtype = /obj/item/shipcomponent/
price_boundary = list(500,2500)
possible_names = list("Our shipyards are low on ship-building components. Could you sell us some?",
"We're trying a new experimental pod construction technique and need all the ship components we can get.")
/datum/commodity/trader/generic/jumpsuits
comname = "Jumpsuits"
comtype = /obj/item/clothing/under/
price_boundary = list(20,100)
possible_names = list("We're drafting in some new staff soon, and need new jumpsuits.",
"We need any jumpsuits you can spare. Don't ask.")