Commit Graph

22 Commits

Author SHA1 Message Date
David Leal 70a485f793
Add Travis CI and LuaCheck (#5) 2020-05-12 19:32:23 -05:00
crabman77 9596b2f435 fix crash if player leave and lag server 2016-09-08 19:34:28 +02:00
crabman77 269488f8c2 fix crash if close and open formspec very fast and server lag
Fix crash when closing and opening formspec very quickly and server lag
2016-06-20 18:42:16 +02:00
crabman77 852b4d9b0b fix default max,
add shop General sell +10%$
add furnace shop
add mese, nyancat in shop ingots
2016-06-19 14:05:25 +02:00
crabman77 5a19d76074 better shop type, add max items quantity by default 2016-06-17 20:43:58 +02:00
Cyberpangolin 78ec0919c9 Small update on the price calculation
now prices are higher than on the first good formula (with the log) for less than 300 items,
and cheaper for more than 300 items. Probably better balanced, even if it means the difference between buy and sell increases a bit.
2016-06-14 11:27:08 +02:00
Cyberpangolin 8a1b0ec41d update on the new calculation formula
to make it more understandable
2016-06-14 10:49:21 +02:00
Cyberpangolin 53f48691b3 Replacing the way to calculate the prices.
The new formula is simpler, so easier to calculate, and gives better results at extremely high or low stocks values.
I keep as commentary the old formula just in case, it was a pain to write it ;)
1000000 is now a good money value at the very beggining of the shop.
2016-06-14 10:23:12 +02:00
crabman77 9ead7cc839 added whitelist item
added function additem/delitem
2016-06-13 23:25:06 +02:00
Cyberpangolin 55d73c330e Update shop.lua 2016-06-13 22:49:51 +02:00
crabman77 104d281fd9 add shop privs, others shop type, add shop type name in node formspec 2016-06-11 15:49:49 +02:00
crabman77 3ba1431a70 readd maptools in depends, use maptools coins or defines coins 2016-06-11 02:04:11 +02:00
Cyberpangolin ebe17cc9e3 Update price calculation to avoid big differences on very low prices.
add 0.5 to the calculated buying price before rounding it to make it more balanced at very low prices.
2016-06-10 22:52:26 +02:00
crabman77 9fb020b39a add coins and add alias to maptools coins
add and compress textures
and more changes
2016-06-10 19:16:33 +02:00
crabman77 a5f384fc6a optimize textures with trimage
move wear texture in formspec
change texture empty slot
2016-06-09 22:52:19 +02:00
crabman77 58c7496d7b fix wrong code 2016-06-09 22:13:24 +02:00
crabman77 cb24bfea94 change default shop monnaie
rewrite buy formspec
add total count transactions in welcome formspec
rename wear textures
fix wrong price convertion
2016-06-09 21:50:54 +02:00
crabman77 b45820a977 add wear textures and display tools wear in sell formspec
remove shop money in formspec
2016-06-09 01:15:09 +02:00
crabman77 a585697dcc now we can select item type solded by shop
rewrite formspec
2016-06-08 22:29:27 +02:00
crabman77 29b7a0440b add define price depending on wear 2016-06-08 12:40:27 +02:00
Cyberpangolin 09d48dc614 Update shop.lua 2016-06-07 21:32:26 +02:00
crabman77 bb25d17676 check items and ignore unbreakable/admin stuff
add a max stock, shop don't buy infinity items
2016-06-06 02:02:27 +02:00