Skip to content

Commit

Permalink
Update admin decay function field
Browse files Browse the repository at this point in the history
  • Loading branch information
hakatashi committed Oct 29, 2023
1 parent 195141a commit 81c4c23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CTFd/plugins/dynamic_challenges/assets/create.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
<li>Linear: The amount of points deducted per solve. Equal deduction per solve.</li>
<li>Logarithmic: The amount of solves before the challenge reaches its minimum value. Earlier solves will lose less
points. Later solves will lose more points</li>
<li>TSG CTF: No effect</li>
</ul>
</small>
</label>
Expand Down
3 changes: 3 additions & 0 deletions CTFd/plugins/dynamic_challenges/assets/update.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@
<ul>
<li>Linear: Calculated as <code>Initial - (Decay * SolveCount)</code></li>
<li>Logarithmic: Calculated as <code>(((Minimum - Initial) / (Decay^2)) * (SolveCount^2)) + Initial</code></li>
<li>TSG CTF: Developed by naan112358</li>
</ul>
</small>
</label>
<select name="function" class="custom-select">
<option value="linear" {% if challenge.function == "linear" %}selected{% endif %}>Linear</option>
<option value="logarithmic" {% if challenge.function == "logarithmic" %}selected{% endif %}>Logarithmic</option>
<option value="tsgctf" {% if challenge.function == "tsgctf" %}selected{% endif %}>TSG CTF</option>
</select>
</div>

Expand All @@ -42,6 +44,7 @@
<ul>
<li>Linear: The amount of points deducted per solve. Equal deduction per solve.</li>
<li>Logarithmic: The amount of solves before the challenge reaches its minimum value. Earlier solves will lose less points. Later solves will lose more points</li>
<li>TSG CTF: No effect</li>
</ul>
</small>
</label>
Expand Down

0 comments on commit 81c4c23

Please sign in to comment.