-
Notifications
You must be signed in to change notification settings - Fork 90
refactor SET_POWER_CONFIGURATION command #3971
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| {"COST", 6, field(game.conf.magic_conf.power_cfgstats[0].cost[6]), 0, LONG_MIN,ULONG_MAX, NULL, value_default, assign_default}, | ||
| {"COST", 7, field(game.conf.magic_conf.power_cfgstats[0].cost[7]), 0, LONG_MIN,ULONG_MAX, NULL, value_default, assign_default}, | ||
| {"COST", 7, field(game.conf.magic_conf.power_cfgstats[0].cost[8]), 0, LONG_MIN,ULONG_MAX, NULL, value_default, assign_default}, | ||
| {"POWER", -1, field(game.conf.magic_conf.power_cfgstats[0].strength), 0, LONG_MIN,ULONG_MAX, NULL, value_powercost, assign_powercost}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any support for negative value? I think most power will not work at all currently if one give them a negative power value?🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
euh strength is a long, but didn't look further in to how it's used, no different then before my refactors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah! Nevermind then, a bit strange for it to be a long but ok.
|
I tried And I get this log error: |
Sorry. This is obviously because I am missing a variable in that script command. |
No description provided.