DiscoveryGC / FLHook

FLHook for Discovery Freelancer
Other
28 stars 33 forks source link

base: hardcoded max core upgrade #152

Open dd84ai opened 3 years ago

dd84ai commented 3 years ago

https://github.com/DiscoveryGC/FLHook/blob/ac2f3bcef8fac958cf4fff109402aa5a0ba64f46/Plugins/Public/base_plugin/PlayerCommands.cpp

if (type == Module::TYPE_CORE) { if (base->base_level >= 4) { PrintUserCmdText(client, L"ERR Upgrade not available"); return; } }

Un hard code this '4' value to be in config file.

brac3r commented 1 year ago

Also in buildmodule. See my hardcoded change example here.

brac3r commented 1 year ago

Done and tested. Refactor it to be whatever meets your standards.