Module:MerchantHideDiscount: Difference between revisions

From Brighter Shores Wiki
Jump to navigation Jump to search
Content added Content deleted
No edit summary
m (simplify)
 
Line 1: Line 1:
return {
local p = {}
['Basic White Cow Hide']=10,

['Basic Deer Hide']=14,
-- non dynamic module, no inputs
['Basic Black Cow Hide']=25,
function p.main()
['Basic Sheep Hide']=30,
['Basic Brown Cow Hide']=33 ,
-- provides a lookup table for types of hide and the merchant level at which they get a discount
['Basic Bison Hide']=39,
local out = {}
out['Basic White Cow Hide']=10
['Basic Buffalo Hide']=45,
out['Basic Deer Hide']=14
['Basic Halebeast Hide']=51,
out['Basic Black Cow Hide']=25
['Moderate White Cow Hide']=56,
out['Basic Sheep Hide']=30
['Moderate Deer Hide']=59,
out['Basic Brown Cow Hide']=33
['Moderate Black Cow Hide']=70,
out['Basic Bison Hide']=39
['Moderate Sheep Hide']=71,
out['Basic Buffalo Hide']=45
['Moderate Brown Cow Hide']=77,
out['Basic Halebeast Hide']=51
['Moderate Bison Hide']=82,
out['Moderate White Cow Hide']=56
['Moderate Buffalo Hide']=90,
out['Moderate Deer Hide']=59
['Moderate Halebeast Hide']=96,
out['Moderate Black Cow Hide']=70
['Fine White Cow Hide']=97,
out['Moderate Sheep Hide']=71
['Fine Deer Hide']=103,
out['Moderate Brown Cow Hide']=77
['Fine Black Cow Hide']=111,
out['Moderate Bison Hide']=82
['Fine Sheep Hide']=116,
out['Moderate Buffalo Hide']=90
['Fine Brown Cow Hide']=122,
out['Moderate Halebeast Hide']=96
['Fine Bison Hide']=123,
out['Fine White Cow Hide']=97
['Fine Buffalo Hide']=134,
out['Fine Deer Hide']=103
['Fine Halebeast Hide']=137,
out['Fine Black Cow Hide']=111
['Strong White Cow Hide']=142,
out['Fine Sheep Hide']=116
['Strong Deer Hide']=148,
out['Fine Brown Cow Hide']=122
['Strong Black Cow Hide']=155,
out['Fine Bison Hide']=123
['Strong Sheep Hide']=168,
out['Fine Buffalo Hide']=134
['Strong Brown Cow Hide']=175,
out['Fine Halebeast Hide']=137
['Strong Bison Hide']=180,
out['Strong White Cow Hide']=142
['Strong Buffalo Hide']=186,
out['Strong Deer Hide']=148
['Strong Halebeast Hide']=189,
out['Strong Black Cow Hide']=155
['Superior White Cow Hide']=200,
out['Strong Sheep Hide']=168
['Superior Deer Hide']=205,
out['Strong Brown Cow Hide']=175
['Superior Black Cow Hide']=222,
out['Strong Bison Hide']=180
['Superior Sheep Hide']=239,
out['Strong Buffalo Hide']=186
['Superior Brown Cow Hide']=266,
out['Strong Halebeast Hide']=189
['Superior Bison Hide']=283,
out['Superior White Cow Hide']=200
['Superior Buffalo Hide']=289,
out['Superior Deer Hide']=205
['Superior Halebeast Hide']=305,
out['Superior Black Cow Hide']=222
['Perfect White Cow Hide']=333,
out['Superior Sheep Hide']=239
['Perfect Deer Hide']=350,
out['Superior Brown Cow Hide']=266
['Perfect Black Cow Hide']=367,
out['Superior Bison Hide']=283
['Perfect Sheep Hide']=372,
out['Superior Buffalo Hide']=289
['Perfect Brown Cow Hide']=406,
out['Superior Halebeast Hide']=305
['Perfect Bison Hide']=417,
out['Perfect White Cow Hide']=333
['Perfect Buffalo Hide']=473,
out['Perfect Deer Hide']=350
['Perfect Halebeast Hide']=490
}
out['Perfect Black Cow Hide']=367
out['Perfect Sheep Hide']=372
out['Perfect Brown Cow Hide']=406
out['Perfect Bison Hide']=417
out['Perfect Buffalo Hide']=473
out['Perfect Halebeast Hide']=490

return out
end

return p

Latest revision as of 15:45, 5 December 2024

Module documentation
This documentation is transcluded from Module:MerchantHideDiscount/doc. [edit] [history] [purge]
Module:MerchantHideDiscount is required by Module:LeatherworkerList.

This module is a helper module to be used by other modules; it may not designed to be invoked directly. See Brighter Shores:Lua/Helper modules for a full list and more information. For a full list of modules using this helper click here

FunctionTypeUse
()No input neededReturns a Lua Table structured as p[<name of hide>] = <level for discount>

return {
	['Basic White Cow Hide']=10,
	['Basic Deer Hide']=14,
	['Basic Black Cow Hide']=25,
	['Basic Sheep Hide']=30,
	['Basic Brown Cow Hide']=33	,
	['Basic Bison Hide']=39,
	['Basic Buffalo Hide']=45,
	['Basic Halebeast Hide']=51,
	['Moderate White Cow Hide']=56,
	['Moderate Deer Hide']=59,
	['Moderate Black Cow Hide']=70,
	['Moderate Sheep Hide']=71,
	['Moderate Brown Cow Hide']=77,
	['Moderate Bison Hide']=82,
	['Moderate Buffalo Hide']=90,
	['Moderate Halebeast Hide']=96,
	['Fine White Cow Hide']=97,
	['Fine Deer Hide']=103,
	['Fine Black Cow Hide']=111,
	['Fine Sheep Hide']=116,
	['Fine Brown Cow Hide']=122,
	['Fine Bison Hide']=123,
	['Fine Buffalo Hide']=134,
	['Fine Halebeast Hide']=137,
	['Strong White Cow Hide']=142,
	['Strong Deer Hide']=148,
	['Strong Black Cow Hide']=155,
	['Strong Sheep Hide']=168,
	['Strong Brown Cow Hide']=175,
	['Strong Bison Hide']=180,
	['Strong Buffalo Hide']=186,
	['Strong Halebeast Hide']=189,
	['Superior White Cow Hide']=200,
	['Superior Deer Hide']=205,
	['Superior Black Cow Hide']=222,
	['Superior Sheep Hide']=239,
	['Superior Brown Cow Hide']=266,
	['Superior Bison Hide']=283,
	['Superior Buffalo Hide']=289,
	['Superior Halebeast Hide']=305,
	['Perfect White Cow Hide']=333,
	['Perfect Deer Hide']=350,
	['Perfect Black Cow Hide']=367,
	['Perfect Sheep Hide']=372,
	['Perfect Brown Cow Hide']=406,
	['Perfect Bison Hide']=417,
	['Perfect Buffalo Hide']=473,
	['Perfect Halebeast Hide']=490
}