View source for Module:LootChest
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local sprite = require('Module:SpriteFile')
local p = {
calc_average_amount_this_item_per_pool = function(
min_stacksize, max_stacksize,
min_pool_rolls, max_pool_rolls,
item_weight, pool_total_item_weight )
local avg_stacksize = ( min_stacksize + max_stacksize ) / 2
local avg_rolls = ( min_pool_rolls + max_pool_rolls ) / 2
return avg_stacksize * avg_rolls * item_weight / pool_total_item_weight
end,
calc_chance_any_of_this_item_per_pool = function(
min_pool_rolls, max_pool_rolls,
item_weight, pool_total_item_weight )
local inverse_result = 0 -- 1 - inverse_result = return value
000
1:0
Templates used on this page:
- Template:Dablink (view source)
- Template:DataChecked (view source)
- Template:Documentation header (view source)
- Template:Hatnote (view source)
- Template:Notelist (view source)
- Template:See also (view source)
- Template:StringCompare (view source)
- Template:Ver (view source)
- Template:Version (view source)
- Module:Documentation (view source)
- Module:LootChest (view source)
- Module:LootChest/chests (view source)
- Module:LootChest/doc (view source)
- Module:LootChest/items (view source)
- Module:NiceJSON (view source)
- Module:ProcessArgs (view source)
- Module:SpriteFile (view source)
- Module:StringCompare (view source)
Return to Module:LootChest.