Difference between revisions of "Template:Missile"

From CrawlWiki
Jump to: navigation, search
(fixed link to itemprop.cc)
(Adding ability to include 3 launchers. This is relevant to stones, sling bullets, and bolts at least because all three have three launchers as of 0.15.)
Line 9: Line 9:
 
|-
 
|-
 
! align="left" | Launcher
 
! align="left" | Launcher
| [[{{{launcher}}}]] {{{launcher2|}}}
+
| [[{{{launcher}}}]] {{{launcher2|}}} {{{launcher3|}}}
 
|-
 
|-
 
! align="left" | Base damage
 
! align="left" | Base damage
Line 21: Line 21:
 
   |launcher    =  
 
   |launcher    =  
 
   |launcher2  = optional; see below
 
   |launcher2  = optional; see below
 +
  |launcher3  = optional; see below
 
   |damage      =  
 
   |damage      =  
 
  <nowiki>}}</nowiki>
 
  <nowiki>}}</nowiki>
  
Use the name of the weapon, not the name of the skill, as the launcher (e.g. Bow, not Bows).  The exception is for thrown missiles, which should have "throwing" (so the link works).  For missiles with multiple launchers (stones with throwing and sling; and arrows with bow and longbow), specify the second launcher with launcher2.  Note that <tt>launcher2</tt> is included immediately after launcher (separated by a space), and that it is not linked automatically the way <tt>launcher</tt> is.  Therefore you probably want something like:
+
Use the name of the weapon, not the name of the skill, as the launcher (e.g. Bow, not Bows).  The exception is for thrown missiles, which should have "throwing" (so the link works).  For missiles with multiple launchers (stones with throwing and sling; and arrows with bow and longbow), specify the second or third launcher with launcher2 and launcher3.  Note that <tt>launcher2</tt> and <tt>launcher3</tt> are included immediately after launcher (separated by a space), and that they are not linked automatically the way <tt>launcher</tt> is.  Therefore you probably want something like:
  
 
  <nowiki>|launcher  = throwing </nowiki>
 
  <nowiki>|launcher  = throwing </nowiki>
 
  <nowiki>|launcher2 = / [[sling]] </nowiki>
 
  <nowiki>|launcher2 = / [[sling]] </nowiki>
 +
<nowiki>|launcher3 = / [[greatsling]] </nowiki>
  
 
Unfortunately, the item inspection screen does not display the base damage for missiles; this information may be found in [https://gitorious.org/crawl/crawl/source/crawl-ref/source/itemprop.cc itemprop.cc]; it is the third entry in each row of Missile_prop.
 
Unfortunately, the item inspection screen does not display the base damage for missiles; this information may be found in [https://gitorious.org/crawl/crawl/source/crawl-ref/source/itemprop.cc itemprop.cc]; it is the third entry in each row of Missile_prop.
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Revision as of 22:47, 26 November 2014

Name {{{name}}}
Weight {{{weight}}} aum
Launcher [[{{{launcher}}}]]
Base damage {{{damage}}}

Put this template at the top of every missile page. Call it like this:

{{missile
 |name        = 
 |weight      = 
 |launcher    = 
 |launcher2   = optional; see below
 |launcher3   = optional; see below
 |damage      = 
}}

Use the name of the weapon, not the name of the skill, as the launcher (e.g. Bow, not Bows). The exception is for thrown missiles, which should have "throwing" (so the link works). For missiles with multiple launchers (stones with throwing and sling; and arrows with bow and longbow), specify the second or third launcher with launcher2 and launcher3. Note that launcher2 and launcher3 are included immediately after launcher (separated by a space), and that they are not linked automatically the way launcher is. Therefore you probably want something like:

|launcher  = throwing 
|launcher2 = / [[sling]] 
|launcher3 = / [[greatsling]] 

Unfortunately, the item inspection screen does not display the base damage for missiles; this information may be found in itemprop.cc; it is the third entry in each row of Missile_prop.