tripple auction duration values (6 hours wont stick, so does the og 2)

This commit is contained in:
gretchen
2024-03-06 18:37:24 +01:00
parent f405779b3e
commit 26b0c655f0
2 changed files with 16 additions and 16 deletions
+2 -2
View File
@@ -27,8 +27,8 @@ function SlashCmdList.AUX(command)
elseif arguments[1] == 'post' and arguments[2] == 'bid' then
aux.account_data.post_bid = not aux.account_data.post_bid
aux.print('post bid ' .. status(aux.account_data.post_bid))
elseif arguments[1] == 'post' and arguments[2] == 'duration' and T.map('2', post.DURATION_2, '8', post.DURATION_8, '24', post.DURATION_24)[arguments[3]] then
aux.account_data.post_duration = T.map('2', post.DURATION_2, '8', post.DURATION_8, '24', post.DURATION_24)[arguments[3]]
elseif arguments[1] == 'post' and arguments[2] == 'duration' and T.map('6', post.DURATION_6, '24', post.DURATION_24, '72', post.DURATION_72)[arguments[3]] then
aux.account_data.post_duration = T.map('6', post.DURATION_6, '24', post.DURATION_24, '72', post.DURATION_72)[arguments[3]]
aux.print('post duration ' .. aux.color.blue(aux.account_data.post_duration / 60 .. 'h'))
elseif arguments[1] == 'crafting' and arguments[2] == 'cost' then
aux.account_data.crafting_cost = not aux.account_data.crafting_cost