Currently whether it's gaia, or a vain attempt to capture your building you can't tell the difference.
TODO: Maybe a bit better sound for gaia, and a new one for capture.
Differential D2859
Allow to play different sounds based on what attacked you Stan on Jul 3 2020, 1:59 PM. Authored by
Details
Currently whether it's gaia, or a vain attempt to capture your building you can't tell the difference. TODO: Maybe a bit better sound for gaia, and a new one for capture. Make sure that when gaia attacks you, you get a different sound
Diff Detail
Event TimelineComment Actions Successful build - Chance fights ever on the side of the prudent. Linter detected issues: Executing section Source... Executing section JS... | | [NORMAL] ESLintBear (spaced-comment): | | Expected space or tab after '//' in comment. |----| | /zpool0/trunk/binaries/data/mods/public/simulation/components/AttackDetection.js | |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/AttackDetection.js | 39| 39| this.ActivateTimer(); | 40| 40| }; | 41| 41| | 42| |-//// Message handlers //// | | 42|+// // Message handlers //// | 43| 43| | 44| 44| AttackDetection.prototype.OnGlobalAttacked = function(msg) | 45| 45| { | | [NORMAL] ESLintBear (spaced-comment): | | Expected space or tab after '//' in comment. |----| | /zpool0/trunk/binaries/data/mods/public/simulation/components/AttackDetection.js | |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/AttackDetection.js | 53| 53| this.AttackAlert(msg.target, msg.attacker, msg.type, msg.attackerOwner); | 54| 54| }; | 55| 55| | 56| |-//// External interface //// | | 56|+// // External interface //// | 57| 57| | 58| 58| AttackDetection.prototype.AttackAlert = function(target, attacker, type, attackerOwner) | 59| 59| { | | [NORMAL] ESLintBear (operator-linebreak): | | '||' should be placed at the end of the line. |----| | /zpool0/trunk/binaries/data/mods/public/simulation/components/AttackDetection.js | |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/AttackDetection.js | 103| 103| isPriorityIncreased = element.targetIsDomesticAnimal && !targetIsDomesticAnimal; | 104| 104| var isPriorityDescreased = !element.targetIsDomesticAnimal && targetIsDomesticAnimal; | 105| 105| | 106| |- if (isPriorityIncreased | 107| |- || (!isPriorityDescreased && dist < this.suppressionTransferRangeSquared)) | | 106|+ if (isPriorityIncreased || | | 107|+ (!isPriorityDescreased && dist < this.suppressionTransferRangeSquared)) | 108| 108| this.UpdateSuppressionEvent(i, event); | 109| 109| | 110| 110| // If priority has increased, exit the loop to send the upgraded notification below binaries/data/mods/public/simulation/components/AttackDetection.js | 107| » » ····||·(!isPriorityDescreased·&&·dist·<·this.suppressionTransferRangeSquared)) | | [NORMAL] JSHintBear: | | Misleading line break before '||'; readers may interpret this as an expression boundary. Executing section cli... Link to build: https://jenkins.wildfiregames.com/job/docker-differential/2576/display/redirect
Comment Actions Successful build - Chance fights ever on the side of the prudent. Linter detected issues: Executing section Source... Executing section JS... | | [NORMAL] ESLintBear (semi): | | Missing semicolon. |----| | /zpool0/trunk/binaries/data/mods/public/globalscripts/AttackEffects.js | |++++| /zpool0/trunk/binaries/data/mods/public/globalscripts/AttackEffects.js | 18| 18| "Capture": { | 19| 19| "sound": "attacked_capture" | 20| 20| } | 21| |-} | | 21|+}; binaries/data/mods/public/globalscripts/AttackEffects.js | 21| } | | [NORMAL] JSHintBear: | | Missing semicolon. | | [NORMAL] ESLintBear (spaced-comment): | | Expected space or tab after '//' in comment. |----| | /zpool0/trunk/binaries/data/mods/public/simulation/components/AttackDetection.js | |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/AttackDetection.js | 39| 39| this.ActivateTimer(); | 40| 40| }; | 41| 41| | 42| |-//// Message handlers //// | | 42|+// // Message handlers //// | 43| 43| | 44| 44| AttackDetection.prototype.OnGlobalAttacked = function(msg) | 45| 45| { | | [NORMAL] ESLintBear (spaced-comment): | | Expected space or tab after '//' in comment. |----| | /zpool0/trunk/binaries/data/mods/public/simulation/components/AttackDetection.js | |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/AttackDetection.js | 53| 53| this.AttackAlert(msg.target, msg.attacker, msg.type, msg.attackerOwner); | 54| 54| }; | 55| 55| | 56| |-//// External interface //// | | 56|+// // External interface //// | 57| 57| | 58| 58| AttackDetection.prototype.AttackAlert = function(target, attacker, type, attackerOwner) | 59| 59| { | | [NORMAL] ESLintBear (operator-linebreak): | | '||' should be placed at the end of the line. |----| | /zpool0/trunk/binaries/data/mods/public/simulation/components/AttackDetection.js | |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/AttackDetection.js | 103| 103| isPriorityIncreased = element.targetIsDomesticAnimal && !targetIsDomesticAnimal; | 104| 104| var isPriorityDescreased = !element.targetIsDomesticAnimal && targetIsDomesticAnimal; | 105| 105| | 106| |- if (isPriorityIncreased | 107| |- || (!isPriorityDescreased && dist < this.suppressionTransferRangeSquared)) | | 106|+ if (isPriorityIncreased || | | 107|+ (!isPriorityDescreased && dist < this.suppressionTransferRangeSquared)) | 108| 108| this.UpdateSuppressionEvent(i, event); | 109| 109| | 110| 110| // If priority has increased, exit the loop to send the upgraded notification below binaries/data/mods/public/simulation/components/AttackDetection.js | 107| » » ····||·(!isPriorityDescreased·&&·dist·<·this.suppressionTransferRangeSquared)) | | [NORMAL] JSHintBear: | | Misleading line break before '||'; readers may interpret this as an expression boundary. Executing section cli... Link to build: https://jenkins.wildfiregames.com/job/docker-differential/2644/display/redirect
Comment Actions Successful build - Chance fights ever on the side of the prudent. Linter detected issues: Executing section Source... Executing section JS... | | [NORMAL] ESLintBear (spaced-comment): | | Expected space or tab after '//' in comment. |----| | /zpool0/trunk/binaries/data/mods/public/simulation/components/AttackDetection.js | |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/AttackDetection.js | 39| 39| this.ActivateTimer(); | 40| 40| }; | 41| 41| | 42| |-//// Message handlers //// | | 42|+// // Message handlers //// | 43| 43| | 44| 44| AttackDetection.prototype.OnGlobalAttacked = function(msg) | 45| 45| { | | [NORMAL] ESLintBear (spaced-comment): | | Expected space or tab after '//' in comment. |----| | /zpool0/trunk/binaries/data/mods/public/simulation/components/AttackDetection.js | |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/AttackDetection.js | 53| 53| this.AttackAlert(msg.target, msg.attacker, msg.type, msg.attackerOwner); | 54| 54| }; | 55| 55| | 56| |-//// External interface //// | | 56|+// // External interface //// | 57| 57| | 58| 58| AttackDetection.prototype.AttackAlert = function(target, attacker, type, attackerOwner) | 59| 59| { | | [NORMAL] ESLintBear (operator-linebreak): | | '||' should be placed at the end of the line. |----| | /zpool0/trunk/binaries/data/mods/public/simulation/components/AttackDetection.js | |++++| /zpool0/trunk/binaries/data/mods/public/simulation/components/AttackDetection.js | 103| 103| isPriorityIncreased = element.targetIsDomesticAnimal && !targetIsDomesticAnimal; | 104| 104| var isPriorityDescreased = !element.targetIsDomesticAnimal && targetIsDomesticAnimal; | 105| 105| | 106| |- if (isPriorityIncreased | 107| |- || (!isPriorityDescreased && dist < this.suppressionTransferRangeSquared)) | | 106|+ if (isPriorityIncreased || | | 107|+ (!isPriorityDescreased && dist < this.suppressionTransferRangeSquared)) | 108| 108| this.UpdateSuppressionEvent(i, event); | 109| 109| | 110| 110| // If priority has increased, exit the loop to send the upgraded notification below binaries/data/mods/public/simulation/components/AttackDetection.js | 107| » » ····||·(!isPriorityDescreased·&&·dist·<·this.suppressionTransferRangeSquared)) | | [NORMAL] JSHintBear: | | Misleading line break before '||'; readers may interpret this as an expression boundary. Executing section cli... Link to build: https://jenkins.wildfiregames.com/job/docker-differential/2781/display/redirect Comment Actions
Do you plan to update the sounds in this diff as well?
Comment Actions Style changes
Comment Actions Successful build - Chance fights ever on the side of the prudent. Linter detected issues: Executing section Source... Executing section JS... **** ESLintBear (spaced-comment) [Section <empty> | Severity NORMAL] **** ! ! Expected space or tab after '//' in comment. [----] /zpool0/trunk/binaries/data/mods/public/simulation/components/AttackDetection.js [++++] /zpool0/trunk/binaries/data/mods/public/simulation/components/AttackDetection.js [ 42] //// Message handlers //// [ 42] // // Message handlers //// **** ESLintBear (spaced-comment) [Section <empty> | Severity NORMAL] **** ! ! Expected space or tab after '//' in comment. [----] /zpool0/trunk/binaries/data/mods/public/simulation/components/AttackDetection.js [++++] /zpool0/trunk/binaries/data/mods/public/simulation/components/AttackDetection.js [ 56] //// External interface //// [ 56] // // External interface //// **** ESLintBear (operator-linebreak) [Section <empty> | Severity NORMAL] **** ! ! '||' should be placed at the end of the line. [----] /zpool0/trunk/binaries/data/mods/public/simulation/components/AttackDetection.js [++++] /zpool0/trunk/binaries/data/mods/public/simulation/components/AttackDetection.js [ 106] if (isPriorityIncreased [ 107] || (!isPriorityDescreased && dist < this.suppressionTransferRangeSquared)) [ 106] if (isPriorityIncreased || [ 107] (!isPriorityDescreased && dist < this.suppressionTransferRangeSquared)) binaries/data/mods/public/simulation/components/AttackDetection.js [ 107] » » ····||·(!isPriorityDescreased·&&·dist·<·this.suppressionTransferRangeSquared)) **** JSHintBear [Section: JS | Severity: NORMAL] **** ! ! Misleading line break before '||'; readers may interpret this as an expression boundary. Executing section cli... Link to build: https://jenkins.wildfiregames.com/job/docker-differential/2920/display/redirect |