树/摇晃/row
此页面在基础页面树/摇晃上用于打印出表格的每一行。
It automatically calculates the correct chance from a given input taking into consideration all previous chances. This is necessary because it is not correct to claim that the line else if (genRand.Next(35) == 0)
somewhere inside the if-else tree in
is identical to a flat 1/35 chance. (Instead, one must take into consideration all previous ShakeTree()
and if
checks.) Typically, there are also other conditions aside from just the chance, such as Halloween being active or that it is daytime. This subpage is capable of recognizing that and printing differentiated chances.
else if
Pass the tree drop as the parameter
, the chance as in the source code as the parameter item
, the tree type as the parameter chance
, and the condition as the parameter treetypes
. The chance must be in a conditions
<numerator>/<denominator>
format, e.g.
or 1/35
. Valid values for tree types and conditions are 2/7
forest
, boreal
, jungle
, corrupt
, crimson
, hallowed
, palm
, corrupt palm
, crimson palm
, hallowed palm
, ash
, mushroom
and day
, night
, halloween
, notoasis
, underworld
, respectively; separate multiple with a comma.
The subpage facilitates storing information to the Drops cargo table in a manner similar to {{loot}}. Use the parameter
with a slash-separated list of the raw names of the dropped items, e.g. lootitem
. Coconut/Banana
allows setting a quantity if it is different from the default of 1.
$lootquantity
For debugging, set
to $debug
/on
.
off