Module:MerchantHideDiscount

From Brighter Shores Wiki
Jump to navigation Jump to search
Module documentation
This documentation is transcluded from Module:MerchantHideDiscount/doc. [edit] [history] [purge]
Module:MerchantHideDiscount is required by Module:LeatherworkerList.
Module:MerchantHideDiscount is required by Module:LeatherworkerPassiveList.

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>

local p = {}

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