Anonymous

Template:ThievingTarget: Difference between revisions

From Melvor Idle
Change drops section
(Change to Lua powered template)
(Change drops section)
Line 10: Line 10:


{{#vardefine:itemDrops|{{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|lootTable}}}}
{{#vardefine:itemDrops|{{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|lootTable}}}}
{{#vardefine:itemDropsText|{{#ifeq:{{#var:itemDrops}}|||75% chance for:<br/>{{#var:itemDrops}}<br/>}}}}
{{#vardefine:itemDropsText|{{#ifeq:{{#var:itemDrops}}|||Normal Drops:<br/>{{#var:itemDrops}}<br/>}}}}


<!-- Generate the box -->
<!-- Generate the box -->
Line 28: Line 28:
* {{GP|1|{{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|maxCoins}}}}
* {{GP|1|{{#invoke:Skills|getThievingNPCStat|{{#var:npc}}|maxCoins}}}}
{{#var:itemDropsText}}
{{#var:itemDropsText}}
0.83% chance for:
Rare Drops:
* {{ItemIcon|Bobby's Pocket}}
* &nbsp;&nbsp;0.83% {{ItemIcon|Bobby's Pocket}}
 
* &nbsp;&nbsp;0.01% {{ItemIcon|Chapeau Noir}}
0.01% chance for:
* {{ItemIcon|Chapeau Noir}}
|}</includeonly></onlyinclude>
|}</includeonly></onlyinclude>