Helpers
Avulto provides several Python functions that can be useful for inspecting
codebases.
-
fill_with_ones(l: Dmlist) → dict
Returns a dictionary version of the passed in list l with all unset values set to 1.
-
pickweight(d: dict) → any
Returns a weighted pick from the items in d.
-
pick_weight_recursive(l: Dmlist) → any
Returns a recursive weighted pick from the items in l.
-
prob(p: int) → int
Returns 1 with probability p percent, otherwise 0. Equivalent to BYOND’s prob.