-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrinkets.html
More file actions
91 lines (85 loc) · 3.94 KB
/
trinkets.html
File metadata and controls
91 lines (85 loc) · 3.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!DOCTYPE html>
<html>
<head>
<title>Simcraft Trinket Compare Generator</title>
</head>
<body>
<p><a href="https://github.com/dheighton/simc-trinket-compare">View Project on Github</a></p>
<ul>
<li>In SIMC, import your character profile</li>
<li>Find your trinkets in the generated file, should be under trinket1= and trinket2=</li>
<li>Comment out those lines by putting a # in front of them</li>
<li>Put in a list of trinkets you want to use below, in simc's format, note instead of bonusids, you can use ilevel=850</li>
<li>Click Generate List</li>
<li>Select, copy, and paste the results at the bottom of your simc import</li>
<li>Run the simulation in Simc!</li>
</ul>
<label for="trinketlist">Paste trinket lines without trinket1= from SIMC</label><br>
<textarea id="trinketlist" name="trinketlist" cols="80" rows="10">bloodthirsty_instinct,id=139329,ilevel=850
bough_of_corruption,id=139336,ilevel=850
chaos_talisman,id=137459,ilevel=850
chrono_shard,id=137419,ilevel=850
corrupted_starlight,id=137301,ilevel=850
darkmoon_deck_dominion,id=128705,bonus_id=669
devilsaur_shockbaton,id=140030,ilevel=850
faulty_countermeasure,id=137539,ilevel=850
giant_ornamental_pearl,id=137369,ilevel=850
horn_of_valor,id=133642,ilevel=850
hunger_of_the_pack,id=136975,ilevel=850
hunger_of_the_pack,id=136975,ilevel=850,enchant=-927crit,gems=927haste
hunger_of_the_pack,id=136975,ilevel=850,enchant=-927crit,gems=927mastery
hunger_of_the_pack,id=136975,ilevel=850,enchant=-927crit,gems=927versatility
impact_tremor,id=140034,ilevel=850
infernal_alchemist_stone,id=127842,bonus_id=669
mark_of_dargrul,id=137357,ilevel=850
memento_of_angerboda,id=133644,ilevel=850
natures_call,id=139334,ilevel=850
nightmare_egg_shell,id=137312,ilevel=850
ravaged_seed_pod,id=139320,ilevel=850
sixfeather_fan,id=141585,ilevel=850
spiked_counterweight,id=136715,ilevel=850
spontaneous_appendages,id=139325,ilevel=850
swarming_plaguehive,id=139321,ilevel=850
tempered_egg_of_serpentrix,id=137373,ilevel=850
terrorbound_nexus,id=137406,ilevel=850
the_devilsaurs_bite,id=140026,ilevel=850
thriceaccursed_compass,id=141537,ilevel=850
tiny_oozeling_in_a_jar,id=137439,ilevel=850
tirathons_betrayal,id=137537,ilevel=850
unstable_arcanocrystal,id=141482,ilevel=850
vindictive_gladiators_badge_of_conquest,id=135691,ilevel=850
vindictive_gladiators_insignia_of_conquest,id=135693,ilevel=850
windscar_whetstone,id=137486,ilevel=850
wriggling_sinew,id=139326,ilevel=850</textarea><br>
<button onclick="generateList()">Generate List</button><br>
<label for="listoutoutput">Results (Click Inside, Ctrl+A, then Ctrl+C</label><br>
<textarea id="listoutput" name="listoutput" readonly cols="80" rows="10"></textarea><br>
<p><a href="https://github.com/dheighton/simc-trinket-compare">View Project on Github</a></p>
<script type="text/javascript">
function generateList(){
var trinketList = document.getElementById('trinketlist').value;
var trinketArray = trinketList.split('\n');
var trinketComboArray = [];
trinketArray.forEach(function(trinket1,i,trinketArray){
delete trinketArray[i];
trinketArray.forEach(function(trinket2,j,trinketArray){
if(trinket1 != trinket2){
trinketComboArray.push({trinket1:trinket1,trinket2:trinket2});
}
});
});
var outputtext = "";
//outputtext = outputtext + gearList + '\n';
trinketComboArray.forEach(function(comboItem,c,trinketComboArray){
trinket1name = comboItem.trinket1.split(',')[0];
trinket2name = comboItem.trinket2.split(',')[0];
outputtext = outputtext + 'copy="' + trinket1name + '_' + trinket2name + '"\n';
outputtext = outputtext + 'trinket1=' + comboItem.trinket1 + '\n';
outputtext = outputtext + 'trinket2=' + comboItem.trinket2 + '\n';
outputtext = outputtext + '\n';
});
document.getElementById("listoutput").value = outputtext;
}
</script>
</body>
</html>