User:Gearzein/Sandbox

From Terraria Wiki
Jump to navigation Jump to search

Modifier table sort issue

Sorting by damage, the problem in the control table (as represented on Modifier/Common) becomes evident. Under hypothesis, manually inserted "invisible letters" resolve the strange sorting issues found on many of the tables on Modifier (sort of). It's not clean or pretty, and it'll be tedious to implement, but it effectively brute forces the table into functioning. I realize that use of the term "brute force" makes this a bad idea but whatever. Following the release of 1.3 the tables will likely have to be altered anyway; this is an opportune time to implement these changes.

control

Prefix Damage Speed Critical Strike Chance Knockback Tier Value
Quick - +10% - - +1 +21.00%
Deadly +10% +10% - - +2 +46.41%
Agile - +10% +3% - +1 +35.96%
Nimble - +5% - - +1 +10.25%
Murderous +7% +6% +3% - +2 +44.54%
Slow - -15% - - -1 -27.75%
Sluggish - -20% - - -2 -36.00%
Lazy - -8% - - -1 -15.36%
Annoying -20% -15% - - -2 -53.76%
Nasty +5% +10% +2% -10% +1 +16.87%


hypothesis

Prefix Damage Speed Critical Strike Chance Knockback Tier Value
Quick z - +10% - - +1 +21.00%
Deadly a+10% +10% - - +2 +46.41%
Agile z - +10% +3% - +1 +35.96%
Nimble z - +5% - - +1 +10.25%
Murderous b+7% +6% +3% - +2 +44.54%
Slow z - -15% - - -1 -27.75%
Sluggish z - -20% - - -2 -36.00%
Lazy z - -8% - - -1 -15.36%
Annoying d-20% -15% z - - -2 -53.76%
Nasty c+5% +10% +2% -10% +1 +16.87%

candidate

data-sort-value overrides the minus signs used to fill empty space, incidentally causing all values in a column to be numerical and sort properly. Also I can just ctrl-h it when the time comes.

Prefix Damage Speed Critical Strike Chance Knockback Tier Value
Quick - +10% - - +1 +21.00%
Deadly +10% +10% - - +2 +46.41%
Agile - +10% +3% - +1 +35.96%
Nimble - +5% - - +1 +10.25%
Murderous +7% +6% +3% - +2 +44.54%
Slow - -15% - - -1 -27.75%
Sluggish - -20% - - -2 -36.00%
Lazy - -8% - - -1 -15.36%
Annoying -20% -15% - - -2 -53.76%
Nasty +5% +10% +2% -10% +1 +16.87%