Differential D2229 Diff 13101 binaries/data/mods/public/simulation/components/StatusEffectsReceiver.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/simulation/components/StatusEffectsReceiver.js
Show All 24 Lines | |||||
* | * | ||||
* @param {Object} effectData - An object containing the status effects to give to the entity. | * @param {Object} effectData - An object containing the status effects to give to the entity. | ||||
* @param {number} attacker - The entity ID of the attacker. | * @param {number} attacker - The entity ID of the attacker. | ||||
* @param {number} attackerOwner - The player ID of the attacker. | * @param {number} attackerOwner - The player ID of the attacker. | ||||
* @param {number} bonusMultiplier - A value to multiply the damage with (not implemented yet for SE). | * @param {number} bonusMultiplier - A value to multiply the damage with (not implemented yet for SE). | ||||
* | * | ||||
* @return {Object} - The names of the status effects which were processed. | * @return {Object} - The names of the status effects which were processed. | ||||
*/ | */ | ||||
StatusEffectsReceiver.prototype.ApplyStatus = function(effectData, attacker, attackerOwner, bonusMultiplier) | StatusEffectsReceiver.prototype.ApplyStatus = function(effectData, attacker, attackerOwner) | ||||
{ | { | ||||
let attackerData = { "entity": attacker, "owner": attackerOwner }; | let attackerData = { "entity": attacker, "owner": attackerOwner }; | ||||
for (let effect in effectData) | for (let effect in effectData) | ||||
this.AddStatus(effect, effectData[effect], attackerData); | this.AddStatus(effect, effectData[effect], attackerData); | ||||
// TODO: implement loot / resistance. | // TODO: implement loot / resistance. | ||||
return { "inflictedStatuses": Object.keys(effectData) }; | return { "inflictedStatuses": Object.keys(effectData) }; | ||||
▲ Show 20 Lines • Show All 121 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator