Skip to content

Commit

Permalink
wiki(articles): insert spoils calculator
Browse files Browse the repository at this point in the history
  • Loading branch information
angrybacon committed Oct 14, 2023
1 parent cbb90fe commit e5aed3b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CONTRIBUTING_WITH_MARKDOWN.org
Original file line number Diff line number Diff line change
Expand Up @@ -304,3 +304,12 @@ But also support block-level children, and nesting.
Always be casting :spoiler[Doomsday].
:::
#+END_SRC

*** Spoils Calculator

Insert a /Spoils of the Vault/ widget to let the reader run success rate
simulations directly within the Markdown content.

#+BEGIN_SRC markdown
::spoils
#+END_SRC
2 changes: 1 addition & 1 deletion markdown/articles/2023/10/10/spoiling-for-a-fight.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ are you to die when you cast Spoils? You can play with the widget below to test
some scenarios. It simulates casting Spoils 10000 times with the parameters you
define, and computes average life loss as well as death probability figures.

::insert spoils calculator widget here::
::spoils

In the base case, if you have 20 life, 53 cards left in your library, and you
name a 4-of, you have about 14% chance to lose the game, and you'll lose on
Expand Down
2 changes: 2 additions & 0 deletions src/components/Remark/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import {
} from '@/components/Remark/renderers/RemarkTable';
import { RemarkTweet } from '@/components/Remark/renderers/RemarkTweet';
import { RemarkYoutube } from '@/components/Remark/renderers/RemarkYoutube';
import { SpoilsCalculator } from '@/components/SpoilsCalculator/SpoilsCalculator';

export const COMPONENTS: Components = {
a: RemarkLink,
Expand Down Expand Up @@ -60,6 +61,7 @@ export const COMPONENTS_EXTRA = {
row: RemarkRow,
soundcloud: RemarkSoundcloud,
spoiler: RemarkSpoiler,
spoils: SpoilsCalculator,
tweet: RemarkTweet,
youtube: RemarkYoutube,
} as const;

0 comments on commit e5aed3b

Please sign in to comment.