Refactored roulette system (#3271)

Fixes #2887 - thanks to @Everade
Fixes #3292 - thanks to @admkakaroto

Added a script command to open the roulette window from server side.
Added support for clients >= 2018-05-16
Fixed losing behavior for roulette
Enabled roulette system by default
Added a server side delay
Added missing sql log enum value 'Y'

Thanks to @Everade, @admkakaroto, @V0rr, @ecdarreola, @Haikenz and everyone else who contributed to this.
This commit is contained in:
Lemongrass3110
2018-07-06 22:39:58 +02:00
committed by GitHub
parent d612788ed7
commit fe7c0a78ec
11 changed files with 216 additions and 174 deletions

View File

@@ -1120,7 +1120,7 @@ bool itemdb_parse_roulette_db(void)
ShowWarning("itemdb_parse_roulette_db: Unknown item ID '%hu' in level '%d'\n", item_id, level);
continue;
}
if (amount < 1) {
if (amount < 1 || amount > MAX_AMOUNT){
ShowWarning("itemdb_parse_roulette_db: Unsupported amount '%hu' for item ID '%hu' in level '%d'\n", amount, item_id, level);
continue;
}