Talk:ElemModifier

Uncertainty
I'm a little unsure of this edit.

The fifth edition of ECMAScript introduced a new way to access the individual characters of a string: bracket notation. For example, the code returns. This addition was not backwards-compatible however, so using the same code in, say, an old browser would return instead.

So why does this matter? Well, ActionScript is a dialect of ECMAScript, based in part on the abandoned fourth edition. According to the Proposed ECMAScript 4th Edition – Language Overview (PDF) (search for "String indexing"):

A character can be fetched from a string using bracket syntax, as for, no longer requiring an explicit call to the   method:

...which would suggest that it works in ActionScript as well. However! I have not found a single mention of that feature, and the closest thing to an ActionScript REPL I could find has no clue what do do with the code.

I think it's reasonably safe to assume that bracket notation does not work on strings in ActionScript, but I wanted a record of my thinking just in case.

DarthKitty (talk) 02:47, June 10, 2016 (UTC)

Replacing with
This function is only called once, in the damage formula. On that momentous occasion, it receives as arguments:



...where,  , and  are arguments to the higher function.

I changed to  and added  in this edit to make the results a little clearer, even if it isn't completely true to the "original" (decompiled) version.

DarthKitty (talk) 03:31, June 10, 2016 (UTC)

Removing
Techniques in Beast Signer Alpha, which are listed in this JSON file, always have exactly one element. (This element is dynamically set with GetTechInfo for Soulstrike I, Soulstrike II, and Statustrike.) As a result, will always return an empty string. (Try pasting in your browser's console!)

In this edit, I replaced each instance of with an empty string to reflect its uselessness.

DarthKitty (talk) 08:17, June 10, 2016 (UTC)