@@ -157,29 +157,31 @@ static const auto EFFECT_TYPE_LOOKUP = datastructure::create_const_map<nyan::fqo
157157 * Maps API resistance types to internal effect types.
158158 */
159159static const auto RESISTANCE_TYPE_LOOKUP = datastructure::create_const_map<nyan::fqon_t , effect_t >(
160- std::pair (" engine.resistance.type.ContinuousFlatAttributeChangeDecrease " ,
160+ std::pair (" engine.resistance.continuous.flat_attribute_change. type.FlatAttributeChangeDecrease " ,
161161 effect_t ::CONTINUOUS_FLAC_DECREASE),
162- std::pair(" engine.resistance.type.ContinuousFlatAttributeChangeIncrease " ,
162+ std::pair(" engine.resistance.continuous.flat_attribute_change. type.FlatAttributeChangeIncrease " ,
163163 effect_t ::CONTINUOUS_FLAC_INCREASE),
164- std::pair(" engine.resistance.type.Lure" ,
164+ std::pair(" engine.resistance.continuous. type.Lure" ,
165165 effect_t ::CONTINUOUS_LURE),
166- std::pair(" engine.resistance.type.ContinuousTimeRelativeAttributeChangeDecrease " ,
166+ std::pair(" engine.resistance.continuous. type.TimeRelativeAttributeChangeDecrease " ,
167167 effect_t ::CONTINUOUS_TRAC_DECREASE),
168- std::pair(" engine.resistance.type.ContinuousTimeRelativeAttributeChangeIncrease " ,
168+ std::pair(" engine.resistance.continuous. type.TimeRelativeAttributeChangeIncrease " ,
169169 effect_t ::CONTINUOUS_TRAC_INCREASE),
170- std::pair(" engine.resistance.type.ContinuousTimeRelativeProgressChangeDecrease " ,
170+ std::pair(" engine.resistance.continuous. type.TimeRelativeProgressChangeDecrease " ,
171171 effect_t ::CONTINUOUS_TRPC_DECREASE),
172- std::pair(" engine.resistance.type.ContinuousTimeRelativeProgressChangeIncrease " ,
172+ std::pair(" engine.resistance.continuous. type.TimeRelativeProgressChangeIncrease " ,
173173 effect_t ::CONTINUOUS_TRPC_INCREASE),
174- std::pair(" engine.resistance.type.Convert" ,
174+ std::pair(" engine.resistance.discrete. type.Convert" ,
175175 effect_t ::DISCRETE_CONVERT),
176- std::pair(" engine.resistance.type.DiscreteFlatAttributeChangeDecrease" ,
176+ std::pair(" engine.resistance.discrete.convert.type.AoE2Convert" , // TODO: Remove from API
177+ effect_t ::DISCRETE_CONVERT),
178+ std::pair(" engine.resistance.discrete.flat_attribute_change.type.FlatAttributeChangeDecrease" ,
177179 effect_t ::DISCRETE_FLAC_DECREASE),
178- std::pair(" engine.resistance.type.DiscreteFlatAttributeChangeIncrease " ,
180+ std::pair(" engine.resistance.discrete.flat_attribute_change. type.FlatAttributeChangeIncrease " ,
179181 effect_t ::DISCRETE_FLAC_INCREASE),
180- std::pair(" engine.resistance.type.MakeHarvestable" ,
182+ std::pair(" engine.resistance.discrete. type.MakeHarvestable" ,
181183 effect_t ::DISCRETE_MAKE_HARVESTABLE),
182- std::pair(" engine.resistance.type.SendToContainer" ,
184+ std::pair(" engine.resistance.discrete. type.SendToContainer" ,
183185 effect_t ::DISCRETE_SEND_TO_CONTAINER));
184186
185187
@@ -243,6 +245,8 @@ static const auto ACTIVITY_NODE_DEFS = datastructure::create_const_map<std::stri
243245 * TODO: Expand this to include all systems.
244246 */
245247static const auto ACTIVITY_TASK_SYSTEM_DEFS = datastructure::create_const_map<std::string, system::system_id_t >(
248+ std::pair (" engine.ability.type.ApplyDiscreteEffect" ,
249+ system::system_id_t ::APPLY_EFFECT),
246250 std::pair(" engine.ability.type.Idle" ,
247251 system::system_id_t ::IDLE),
248252 std::pair(" engine.ability.type.Move" ,
@@ -254,6 +258,8 @@ static const auto ACTIVITY_TASK_SYSTEM_DEFS = datastructure::create_const_map<st
254258static const auto ACTIVITY_CONDITIONS = datastructure::create_const_map<std::string, activity::condition_t >(
255259 std::pair (" engine.util.activity.condition.type.CommandInQueue" ,
256260 std::function (gamestate::activity::command_in_queue)),
261+ std::pair(" engine.util.activity.condition.type.NextCommandApplyEffect" ,
262+ std::function (gamestate::activity::next_command_apply_effect)),
257263 std::pair(" engine.util.activity.condition.type.NextCommandIdle" ,
258264 std::function (gamestate::activity::next_command_idle)),
259265 std::pair(" engine.util.activity.condition.type.NextCommandMove" ,
0 commit comments