Made mercenary db dynamic (#2883)

Removed hard limit of the mercenary database
Cleaned up the hard coded duplicated logic
Turned hard coded mercenary ids into constants
This commit is contained in:
Lemongrass3110
2018-02-18 17:15:09 +01:00
committed by GitHub
parent 7f9f185c58
commit 132feeb621
5 changed files with 115 additions and 106 deletions

View File

@@ -18980,7 +18980,7 @@ BUILDIN_FUNC(mercenary_create)
class_ = script_getnum(st,2);
if( !mercenary_class(class_) )
if( !mercenary_db(class_) )
return SCRIPT_CMD_SUCCESS;
contract_time = script_getnum(st,3);