-
Notifications
You must be signed in to change notification settings - Fork 737
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
Common - Add better support for status effects in other components #10468
Common - Add better support for status effects in other components #10468
Conversation
@@ -29,21 +29,20 @@ if (isNull _object) exitWith {}; | |||
//We only do anything if the effect has been defined at some point in the game for this unit | |||
TRACE_2("checking if event is nil",_x,_effectNumber); | |||
if (_effectNumber != -1) then { | |||
private _eventName = format [QGVAR(%1), _x]; |
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.
Anyone using the old format will now be broken
["myThing", true, []] call ace_common_fnc_statusEffect_addType;
["ace_common_myThing", {systemChat str _this}] call CBA_fnc_addEVentHandler;
[player, "myThing", "reason", true] call ace_common_fnc_statusEffect_set;
nothing happens
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.
Adding status effects isn't public API, only get/set are
If something was intentionally adding ace_common_
to a name, I feel that's pretty clear it's only meant to be internally used
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.
I think these changes could break things
and just using QEGVAR(common,field_rations_blockUpdates)
is not that bad
True, but it makes weird naming conventions. It also doesn't make a lot of sense to someone reading through the code until they get to |
Closing in favor or #10473 |
When merged this pull request will:
"blockDamage"
->QGVAR(blockDamage)
ace_common_
appended to it, see #10462IMPORTANT
Component - Add|Fix|Improve|Change|Make|Remove {changes}
.