Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Module:Calcsellprice
(view source)
Revision as of 19:29, 16 February 2023
152 bytes added
,
19:29, 16 February 2023
no edit summary
Line 37:
Line 37:
artisanprice = (2 * (30 + math.floor(baseprice / 2)))
artisanprice = (2 * (30 + math.floor(baseprice / 2)))
elseif (item == "honey") then
elseif (item == "honey") then
−
artisanprice = (100 + (baseprice * 2))
+
--This is a hack that works only because
+
--no flower has a base sell price of 100
+
if (baseprice ~= 100) then
+
artisanprice = (100 + (baseprice * 2))
+
else
+
artisanprice = 100
+
end
elseif (item == "caviar") then
elseif (item == "caviar") then
artisanprice = 500
artisanprice = 500
Margotbean
Interface administrators
, patroller,
Suppressors
,
Administrators
, translators
106,863
edits
Navigation menu
Personal tools
Create account
Log in
Namespaces
Module
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Admin noticeboard
Help Editing
Random page
Official Links
Official Site
Official Forums
Official Merchandise
Discord
Reddit
Tools
Upload file
Special pages
Printable version