Difference between revisions of "Template:RunRewards"
From Jackpoint
Line 5: | Line 5: | ||
| {{#if: {{{nuyen|}}} | ¥{{{nuyen}}} | style="text-align: center;" {{!}} — }} | | {{#if: {{{nuyen|}}} | ¥{{{nuyen}}} | style="text-align: center;" {{!}} — }} | ||
| style="text-align: center;" | | | style="text-align: center;" | | ||
− | {{#expr: {{#if: {{{died|}}} | 0 | 2}} + {{#if: {{{all|}}} | 2 | 0}} + {{#if: {{{some|}}} | 1 | 0}} + {{#if: {{{challenge|}}} | {{{challenge}}} | 0}} + {{#if: {{{bastard|}}} | (-2) | 0}} + {{#if: {{{good_feelings|}}} | 2 | 0}} }} | + | {{#expr: {{#if: {{{died|}}} | 0 | 2}} + {{#if: {{{all|}}} | 2 | 0}} + {{#if: {{{some|}}} | 1 | 0}} + {{#if: {{{challenge|}}} | floor({{{challenge}}} / 4) | 0}} + {{#if: {{{bastard|}}} | (-2) | 0}} + {{#if: {{{good_feelings|}}} | 2 | 0}} }} |
|} | |} | ||
+ | |||
+ | <noinclude> | ||
+ | == Usage == | ||
+ | Setting the parameter to something non-blank adds the value from its row in the karma table. | ||
+ | |||
+ | <pre> | ||
+ | {{RunRewards | ||
+ | |some=1 | ||
+ | |challenge=4 | ||
+ | |good_feelings=1}} | ||
+ | </pre> | ||
+ | </noinclude> |
Revision as of 22:27, 21 February 2021
Nuyen | Karma |
---|---|
— |
2 |
Usage
Setting the parameter to something non-blank adds the value from its row in the karma table.
{{RunRewards |some=1 |challenge=4 |good_feelings=1}}