User:Oreo/sandbox: Difference between revisions
From Official Barotrauma Wiki
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
<!-- STATS --> | <!-- STATS --> | ||
| medical = 30 | | medical = 30 | ||
| damage = | | damage = 30 | ||
| burn = 0.1 | | burn = 0.1 | ||
| oxygenlow = 2 | | oxygenlow = 2 | ||
Line 22: | Line 22: | ||
| opiatewithdrawalfail = -3.0 <!-- Pretty sure this is the same for literally every drug that has it except naloxone --> | | opiatewithdrawalfail = -3.0 <!-- Pretty sure this is the same for literally every drug that has it except naloxone --> | ||
| duration = 10 | | duration = 10 | ||
<!-- CRAFTING --> | <!-- CRAFTING --> | ||
| fabricatorskill = 18 | | fabricatorskill = 18 | ||
Line 68: | Line 67: | ||
}} | }} | ||
</pre></div> | </pre></div> | ||
<includeonly><onlyinclude>{| class="infobox responsive-table" align="right" | <includeonly><onlyinclude><!-- | ||
-->{| class="infobox responsive-table" align="right" | |||
! class="infobox2 responsive-table" colspan="3" | {{{name|{{PAGENAME}}}}} | ! class="infobox2 responsive-table" colspan="3" | {{{name|{{PAGENAME}}}}} | ||
|- | |- | ||
Line 77: | Line 77: | ||
-->{{#if:{{{description|}}}|<hr>''{{{description|}}}''}} | -->{{#if:{{{description|}}}|<hr>''{{{description|}}}''}} | ||
|- | |- | ||
| style="text-align:center" colspan="3" | [[:Category:{{{category|Misc}}}|{{{category|Misc}}}]]{{#if:{{{category2|}}}|, [[:Category:{{{category2}}}|{{{category2}}}]]}}{{#if:{{{subcategory|}}}|<br>[[:Category:{{{subcategory}}}|{{{subcategory}}}]]}}{{#if:{{{tags|}}}|<br>{{#replace:{{{tags}}}|,|, }}}} | | style="text-align:center" colspan="3" |<!-- | ||
-->[[:Category:{{{category|Misc}}}|{{{category|Misc}}}]]{{#if:{{{category2|}}}|, [[:Category:{{{category2}}}|{{{category2}}}]]}}{{#if:{{{subcategory|}}}|<br>[[:Category:{{{subcategory}}}|{{{subcategory}}}]]}}{{#if:{{{tags|}}}|<br>{{#replace:{{{tags}}}|,|, }}}} | |||
{{!}}- | {{!}}- | ||
{{#if:{{{usablefromhealthoverlay|}}}<!-- | |||
{{#if:{{{usablefromhealthoverlay|}}} | -->|! class="infobox3 responsive-table" colspan="3" {{!}} Medical Usage | ||
! class="infobox3 responsive-table" colspan="3" {{!}} Medical Usage | |||
{{!}}- | {{!}}- | ||
{{!}} style="width:40%;font-size:105%" {{!}} Skill Requirements | {{!}} style="width:40%;font-size:105%" {{!}} Skill Requirements | ||
Line 89: | Line 89: | ||
{{!}} style="width:40%;font-size:105%" {{!}} Afflictions | {{!}} style="width:40%;font-size:105%" {{!}} Afflictions | ||
{{!}} style="width:60%" colspan="2" {{!}}<!-- | {{!}} style="width:60%" colspan="2" {{!}}<!-- | ||
-->{{#if:{{{ | // Evaluate a single affliction and fill in information from our infobox | ||
--> | -->{{#if:{{{damage|}}}<!-- Does the item deal/heal internal damage | ||
--> | -->|{{Affliction<!-- | ||
-->{{#if:{{{ | -->|Internal Damage<!-- Affliction name | ||
--> | -->|{{{damage}}}<!-- Strength change/s | ||
--> | -->|{{#if: {{{damagefail}}}<!-- Is there separate strength change/s for failure | ||
--> | -->|{{{damagefail}}}<!-- If yes, return value | ||
}} | -->|<!-- If no, return blank | ||
-->}}<!-- end if | |||
-->|<!-- no instantaneous change | |||
-->|<!-- no instantaneous change on fail | |||
-->|{{#expr:{{{duration}}} * {{{damage}}}}}<!-- Total strength after duration | |||
-->|{{#if: {{{damagefail|}}}<!-- Does affliction need to be calculated for failure damage | |||
-->|{{#if: {{{durationfail|}}}<!-- Does affliction have a separate time for failure | |||
-->|{{#expr: {{{durationfail}}} * {{{damagefail}}} }}<!-- If it does, evaluate with that duration | |||
-->|{{#expr: {{{duration}}} * {{{damagefail}}} }}<!-- If it doesn't, evaluate with regular duration | |||
-->}}<!-- | |||
-->}}<!-- | |||
-->|linktext=Any Internal Damage<!-- internal damage is special in that it actually applies to 7 damage afflictions and concussions. | |||
-->}}<!-- | |||
-->}} | |||
|}</onlyinclude></includeonly> | |}</onlyinclude></includeonly> |
Revision as of 22:20, 7 October 2022
{{#if:true|! class="infobox3 responsive-table" colspan="3" | Medical Usage
Morphine | ||
---|---|---|
Inventory Icon. Sprite. ID: antidama1 A powerful opiate for treating pain associated with internal injuries, but will cause shortness of breath and eventual dependency with overuse. | ||
Medical smallitem, chem, medical, syringe | ||
Skill Requirements | Medical 30 | |
Afflictions | Any Internal Damage (300 | 25)* |
Values used for testing
{{:User:Oreo/sandbox | name = Morphine | sprite = morphine_sprite.png | identifier = antidama1 | description = A powerful opiate for treating pain associated with internal injuries, but will cause shortness of breath and eventual dependency with overuse. | category = Medical | tags = smallitem,chem,medical,syringe <!-- STATS --> | damage = 5 | burn = 0.1 | oxygenlow = 2 | opiateaddiction = 0.5 | opiateoverdose = 1.0 | opiatewithdrawal = -3.0 | damagefail = 2.5 | burnfail = 0.05 | oxygenlowfail = 3 | opiateaddictionfail = 2.5 | opiateoverdosefail = 2.0 | opiatewithdrawalfail = -3.0 <!-- Pretty sure this is the same for literally every drug that has it except naloxone --> | duration = 10 | durationfail = 10 <!-- CRAFTING --> | fabricatorskill = 18 | fabricatormaterials = {{Hyperlink|Opium|32}} (x2) | fabricatortime = 30 | deconstructormaterials = {{Hyperlink|Opium|32}} | deconstructortime = 20 <!-- STORE --> | baseprice = 100 | medicalmultiplier = 0.9 }}