|
@@ -0,0 +1,15 @@
|
|
|
+:: genericActionsMacros[widget]
|
|
|
+<<widget 'actionApply'>>
|
|
|
+ <<set [_genericActionId] = _args>>
|
|
|
+ <<set _genericAction = setup.getGenericActionApplied(_genericActionId)>>
|
|
|
+ <<if _actionFameSettings = _genericAction.fame>>
|
|
|
+ <<for _actionFameKey, _actionFameEffect range _actionFameSettings>>
|
|
|
+ <<set [_actionFameLocation, _actionFameType] = _actionFameKey.split('.')>>
|
|
|
+ <<set _actionFameLocation ||= $location.region>>
|
|
|
+ <<fame _actionFameLocation _actionFameType _actionFameEffect>>
|
|
|
+ <</for>>
|
|
|
+ <</if>>
|
|
|
+ <<if _moodletId = _genericAction.moodlet>>
|
|
|
+ <<mood _moodletId>>
|
|
|
+ <</if>>
|
|
|
+<</widget>>
|