Skip to content

Commit

Permalink
Sparkles, FAQ display change
Browse files Browse the repository at this point in the history
  • Loading branch information
dmchurch committed Jan 15, 2024
1 parent 393d4c4 commit ecfe5a2
Show file tree
Hide file tree
Showing 13 changed files with 1,073 additions and 39 deletions.
7 changes: 4 additions & 3 deletions actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ const PRESTIGE_EXP_OVERFLOW_BASE = 1.00222;
/**
* ActionLoopType is an enum that describes what the "loops" property means. Actions without
* a loopsType property default to the classic behavior of "actions" for non-multipart actions
* or "maxMana" for multipart actions.
* or "maxEffort" for multipart actions.
*
* The comments here assume X as the number specified in "loops" and M as the manaCost() of the
* action in question.
* @typedef {"actions" // perform X actions and then stop
* | "maxMana" // Multipart actions: Spend no more than X * M mana, stop before starting an action that would overflow
* | "maxMana" // Multipart actions: Spend no more than X * M adjusted mana, stop before starting an action that would overflow
* | "maxEffort" // Multipart actions: Spend no more than X * M original mana, stop before starting an action that would overflow
* | "knownGood" // Limited actions: perform at most X actions, only targeting known-good items
* | "unchecked" // Limited actions: perform at most X actions, only targeting unknown items
* } ActionLoopType
Expand Down Expand Up @@ -306,7 +307,7 @@ class Actions {
}
const toAdd = /** @type {AnyActionEntry} */(translateClassNames(action.name));

toAdd.loopsType = action.loopsType ?? (isMultipartAction(toAdd) ? "maxMana" : "actions");
toAdd.loopsType = action.loopsType ?? (isMultipartAction(toAdd) ? "maxEffort" : "actions");
toAdd.loops = action.loops;
toAdd.loopsLeft = action.loops;
toAdd.extraLoops = 0;
Expand Down
28 changes: 28 additions & 0 deletions iconfont.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
@font-face {
font-family: IdleLoopsIcons;
font-style: normal;
font-weight: normal;
src: url(img/IdleLoopsIcons.woff2);
}

.il-icon::before {
font-family: IdleLoopsIcons;
font-style: normal;
font-weight: normal;
}

.il-icon.icon-space::before {
margin-right: 0.25em;
}

.il-mana::before {
content: "\e000";
}

.il-effort::before {
content: "\e001";
}

.il-exp::before {
content: "\e002";
}
Binary file added img/IdleLoopsIcons.woff2
Binary file not shown.
115 changes: 115 additions & 0 deletions img/iconfont.sfdir/effort.glyph
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
StartChar: effort
Encoding: 57345 57345 1
Width: 971
Flags: MW
HStem: 0 21G<416.107 447.418> 346.08 32.4795<64.0228 186.061>
VStem: 695.681 34.7197<116.48 255.36 470.4 608.16>
LayerCount: 2
Fore
SplineSet
744 363 m 1,0,-1
649 295 l 1,1,-1
654 178 l 1,2,-1
542 208 l 1,3,-1
455 132 l 1,4,-1
409 240 l 1,5,-1
295 260 l 1,6,-1
350 363 l 1,7,-1
295 465 l 1,8,-1
409 486 l 1,9,-1
455 592 l 1,10,-1
542 516 l 1,11,-1
654 548 l 1,12,-1
649 431 l 1,13,-1
744 363 l 1,0,-1
821 363 m 1,14,-1
696 454 l 1,15,-1
702 608 l 1,16,-1
553 567 l 1,17,-1
437 669 l 1,18,-1
376 526 l 1,19,-1
224 498 l 1,20,-1
298 363 l 1,21,-1
224 226 l 1,22,-1
376 198 l 1,23,-1
437 56 l 1,24,-1
553 158 l 1,25,-1
702 116 l 1,26,-1
696 271 l 1,27,-1
821 363 l 1,14,-1
256 18 m 2,28,29
245 5 245 5 233 16 c 0,30,31
219 26 219 26 230 38 c 2,32,-1
286 109 l 2,33,34
295 120 295 120 308 111 c 0,35,36
321 100 321 100 310 88 c 2,37,-1
256 18 l 2,28,29
617 -50 m 2,38,39
619 -56 619 -56 615.5 -61.5 c 128,-1,40
612 -67 612 -67 606 -69 c 128,-1,41
600 -71 600 -71 594 -67 c 128,-1,42
588 -63 588 -63 586 -57 c 2,43,-1
567 30 l 2,44,45
563 45 563 45 578 49 c 0,46,47
584 51 584 51 589.5 47 c 128,-1,48
595 43 595 43 597 37 c 2,49,-1
617 -50 l 2,38,39
898 194 m 2,50,51
913 186 913 186 906 172 c 0,52,53
900 158 900 158 885 165 c 2,54,-1
804 203 l 2,55,56
790 208 790 208 796 225 c 0,57,58
802 238 802 238 818 232 c 2,59,-1
898 194 l 2,50,51
884 563 m 2,60,61
899 570 899 570 905 556 c 0,62,63
911 541 911 541 897 534 c 2,64,-1
817 495 l 2,65,66
802 489 802 489 795 503 c 0,67,68
789 519 789 519 803 524 c 2,69,-1
884 563 l 2,60,61
586 782 m 2,70,71
588 788 588 788 594 792 c 128,-1,72
600 796 600 796 606 794 c 128,-1,73
612 792 612 792 615.5 786.5 c 128,-1,74
619 781 619 781 617 775 c 2,75,-1
597 688 l 2,76,77
595 682 595 682 589.5 678 c 128,-1,78
584 674 584 674 578 675 c 0,79,80
563 681 563 681 567 694 c 2,81,-1
586 782 l 2,70,71
228 684 m 2,82,83
217 696 217 696 230 707 c 0,84,85
242 717 242 717 252 704 c 2,86,-1
308 635 l 2,87,88
319 622 319 622 306 613 c 0,89,90
293 602 293 602 284 615 c 2,91,-1
228 684 l 2,82,83
81 346 m 2,92,93
74 346 74 346 69 351 c 128,-1,94
64 356 64 356 64 363 c 128,-1,95
64 370 64 370 69 374.5 c 128,-1,96
74 379 74 379 81 379 c 2,97,-1
170 379 l 2,98,99
186 379 186 379 186 363 c 0,100,101
186 356 186 356 181.5 351 c 128,-1,102
177 346 177 346 170 346 c 2,103,-1
81 346 l 2,92,93
879 363 m 1,104,-1
730 255 l 1,105,-1
739 72 l 1,106,-1
562 121 l 1,107,-1
425 0 l 1,108,-1
353 168 l 1,109,-1
172 200 l 1,110,-1
259 363 l 1,111,-1
172 524 l 1,112,-1
353 557 l 1,113,-1
425 725 l 1,114,-1
562 605 l 1,115,-1
739 653 l 1,116,-1
730 470 l 1,117,-1
879 363 l 1,104,-1
EndSplineSet
Validated: 1
EndChar
25 changes: 25 additions & 0 deletions img/iconfont.sfdir/exp.glyph
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
StartChar: exp
Encoding: 57346 57346 2
Width: 1057
Flags: W
HStem: 0 21G<465.12 593.12>
LayerCount: 2
Fore
SplineSet
792 394 m 1,0,-1
792 137 l 2,1,2
792 81 792 81 715 40.5 c 128,-1,3
638 0 638 0 529 0 c 128,-1,4
420 0 420 0 342.5 40.5 c 128,-1,5
265 81 265 81 265 137 c 2,6,-1
265 394 l 1,7,-1
529 258 l 1,8,-1
792 394 l 1,0,-1
529 790 m 1,9,-1
993 549 l 1,10,-1
529 310 l 1,11,-1
64 549 l 1,12,-1
529 790 l 1,9,-1
EndSplineSet
Validated: 1
EndChar
Loading

0 comments on commit ecfe5a2

Please sign in to comment.