Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/globalscripts/AttackEffects.js
// TODO: could be worth putting this in json files someday | // TODO: could be worth putting this in json files someday | ||||
const g_EffectTypes = ["Damage", "Capture", "ApplyStatus"]; | const g_EffectTypes = ["Damage", "Capture", "ApplyStatus"]; | ||||
const g_EffectReceiver = { | const g_EffectReceiver = { | ||||
"Damage": { | "Damage": { | ||||
"cmp": "Health", | |||||
"IID": "IID_Health", | "IID": "IID_Health", | ||||
"method": "TakeDamage" | "method": "TakeDamage", | ||||
"getRelativeEffectMethod": "GetRelativeDamage" | |||||
}, | }, | ||||
"Capture": { | "Capture": { | ||||
"cmp": "Capturable", | |||||
"IID": "IID_Capturable", | "IID": "IID_Capturable", | ||||
"method": "Capture", | "method": "Capture", | ||||
"getRelativeEffectMethod": "GetRelativeCapture", | |||||
"sound": "capture" | "sound": "capture" | ||||
}, | }, | ||||
"ApplyStatus": { | "ApplyStatus": { | ||||
"cmp": "StatusEffectsReceiver", | |||||
"IID": "IID_StatusEffectsReceiver", | "IID": "IID_StatusEffectsReceiver", | ||||
"method": "ApplyStatus" | "method": "ApplyStatus", | ||||
"getRelativeEffectMethod": "GetRelativeStatusEffect" | |||||
} | } | ||||
}; | }; |
Wildfire Games · Phabricator