User:Oreo/sandbox: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
No edit summary
(Replaced content with "[placeholder]")
Tag: Replaced
 
Line 1: Line 1:
{{:User:Oreo/sandbox
[placeholder]
| 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
| usablefromhealthoverlay = true
| 1 = damage
| 2 = 10
| 3 = 10
| 4 = 10
| 5 = 5
<!-- STATS -->
| medical = 30
| damage = 30
| 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
| combatstimulant = 1
| combatstimulantfail = 10
| 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
}}
<div style="float:left">Values used for testing<pre>
{{: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
}}
</pre></div>
<includeonly><onlyinclude><!--
-->{| class="infobox responsive-table" align="right"
! class="infobox2 responsive-table" colspan="3" | {{{name|{{PAGENAME}}}}}
|-
| colspan="3" style="padding:0.5em;text-align:center !important" |<!--
-->{{ImageHandler|file={{{icon|{{{name|{{PAGENAME}}}}}.png}}}|imagewidth={{{iconwidth|x64}}}px}}{{#if:{{{sprite|}}}|<br>Inventory Icon.}}<!--
-->{{#if:{{{sprite|}}}|<br><br>{{ImageHandler|file={{{sprite}}}|imagewidth={{{spritewidth|x64}}}px}}<br>Sprite.}}<!--
-->{{#if:{{{identifier|}}}|<br><span style="color:#808080">ID: <code>{{{identifier|}}}</code></span>}}<!--
-->{{#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}}}|,|,&nbsp;}}}}
{{!}}-
{{#if:{{{usablefromhealthoverlay|}}}<!--
-->|! class="infobox3 responsive-table" colspan="3" {{!}} Medical Usage
{{!}}-
{{!}} style="width:40%;font-size:105%" {{!}} Skill Requirements
{{!}} style="width:60%" colspan="2" {{!}}<!--
-->[[File:Medical_Doctor_Job_Icon.png|32px|Medical|link=Skills#Medical]] [[Skills#Medical|Medical]] {{{medical}}}
{{!}}-
{{!}} style="width:40%;font-size:105%" {{!}} Afflictions
{{!}} style="width:60%" colspan="2" {{!}}<!--
// Evaluate a single affliction and fill in information from our infobox
vars:
1: affliction name (use "damage" for any internal damage)
2: damage strength per second
3: damage strength on fail per second
4: duration
5: duration if failed
 
  {{#if:{{{2|}}} // Does the item deal/heal internal damage
      |{{Affliction
        |{{{1}}} // Affliction name
        |{{{2}}} // Strength change/s
        |{{#if: {{{3|}}} // Is there separate strength change/s for failure
            |{{{3}}} // If yes, return value
        }} // end if
        | // no instantaneous change
        | // no instantaneous change on fail
        |{{#expr:{{{4}}} * {{{2}}}}} // Total strength after duration
        |{{#if: {{{3|}}} // Does affliction need to be calculated for failure damage
            |{{#if: {{{5|}}} // Does affliction have a separate time for failure
              |{{#expr: {{{5}}} * {{{3}}} }} // If it does, evaluate with that duration
              |{{#expr: {{{4}}} * {{{3}}} }} // 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.
      }}
}}<br>
-->{{Items_infobox/affliction_medical|Internal Damage|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|Any Internal Damage}}<br>
{{Items_infobox/affliction_medical|Burn|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}}}
{{Items_infobox/affliction_medical|Oxygen Low|{{{2}}}|{{{oxygenlowfail}}}|{{{duration}}}|{{{durationfail}}}|Oxygen Low}}
|}</onlyinclude></includeonly>

Latest revision as of 08:11, 8 October 2022

[placeholder]