Template:Digging drops
Jump to navigation
Jump to search
This template uses one or more modules written in the Lua programming language.
For more information, see Wikipedia:Lua or the Lua reference manual on mediawiki.org. Modules used include: drops bullet display, LootTableUtil.
This template tracks and displays drop data of digging on planets. Each loot item and table has a % to be selected, then the items inside of it have a % chance to be selected. So the math for the loot table drop rate is: (LootTablePercent*ItemPercent)*100
Related templates, modules, and tables:
{{Loot_table}}
declares the loot table cargo table.
- Data for the loot table drop information is found on Data:Loot Tables
- Module:LootTableUtil does the cargo querying and gathers all of the information.
- Module:drops bullet display the formatting and displays the results.
Data Mine Information:
The parent for this information, where the default drop rates can be found are in planetKey_Floor_Dirt
, then the loot tables are in planetKey_Dirt
.
Syntax
{{Digging drops|lootlist= LootListName |name= name of activity (will show on other pages in the "dropped by" section.)
|table1 = Loot Table ID name from lootTable table. (string)
|table1chance= Chance for that table to be rolled. (float)
|table1min= Default minimum number of items. (int)
|table1max= Default maximum number of items. (int)
...
|item1 =
|item1chance= Chance for that item to be rolled. (float)
|item1min=
|item1max=
...
}}
Examples
Grey Planet
{{Digging drops|lootlist=Grey_Dirt|name=Digging on the Grey Planet |table1=Grey_Collectables |table1chance=0.01 |table1min=0 |table1max=1 |item1=Soil sample |item1chance=0.21 |item1min=0 |item1max=1 |item2=Minerals |item2chance=0.07 |item2min=0 |item2max=1 |item3=Dark matter |item3chance=0.56 |item3min=0 |item3max=1 |item4=Trash |item4chance=0.02 |item4min=0 |item4max=1 |item5=Lost sock |item5chance=0.01 |item5min=0 |item5max=1 |item6=Space radish |item6chance=0.06 |item6min=0 |item6max=1 |item7=Nothing |item7chance=0.06 |item7min=0 |item7max=0 }}
- (0.10%)
- (0.10%)
- (0.10%)
- (0.10%)
- (0.10%)
- (0.10%)
- (0.10%)
- (0.10%)
- (0.10%)
- (0.10%)
- (21.00%)
- (7.00%)
- (56.00%)
- (2.00%)
- (1.00%)
- (6.00%)
- Nothing (6.00%)