108
edits
m (Remove some empty lines) |
(update loot chances) |
||
Line 2: | Line 2: | ||
== Probability == | == Probability == | ||
The probability of getting loot is calculated using the following formula: | |||
<nowiki>chance_of_loot = 5 if num == 1 else 5 + 1.5 * num | |||
if self.bot.in_class_line(ctx.character_data["class"], "Ritualist"): | |||
chance_of_loot *= 2 | |||
if (random.randint(1, 1000)) > chance_of_loot * 10: | |||
# loot is given if this condition passes</nowiki> | |||
Below is a table to visualize all chances. Ritualists always have double the chance to receive loot. | |||
{| class="wikitable sortable" | |||
|- | |||
! Adventure Difficulty !! chance to get loot !! chance to get loot (ritualist) | |||
|- | |||
| 1 || 5% || 10% | |||
|- | |||
| 2 || 8% || 16% | |||
|- | |||
| 3 || 9.5% || 19% | |||
|- | |||
| 4 || 11% || 22% | |||
|- | |||
| 5 || 12.5% || 25% | |||
|- | |||
| 6 || 14% || 28% | |||
|- | |||
| 7 || 15.5% || 31% | |||
|- | |||
| 8 || 17% || 34% | |||
|- | |||
| 9 || 18.5% || 37% | |||
|- | |||
| 10 || 20% || 40% | |||
|- | |||
| 11 || 21.5% || 43% | |||
|- | |||
| 12 || 23% || 46% | |||
|- | |||
| 13 || 24.5% || 49% | |||
|- | |||
| 14 || 26% || 52% | |||
|- | |||
| 15 || 27.5% || 55% | |||
|- | |||
| 16 || 29% || 58% | |||
|- | |||
| 17 || 30.5% || 61% | |||
|- | |||
| 18 || 32% || 64% | |||
|- | |||
| 19 || 33.5% || 69% | |||
|- | |||
| 20 || 35% || 70% | |||
|- | |||
| 21 || 36.5% || 73% | |||
|- | |||
| 22 || 38% || 76% | |||
|- | |||
| 23 || 39.5% || 79% | |||
|- | |||
| 24 || 41% || 82% | |||
|- | |||
| 25 || 42.5% || 85% | |||
|- | |||
| 26 || 44% || 88% | |||
|- | |||
| 27 || 45.5% || 91% | |||
|- | |||
| 28 || 47% || 94% | |||
|- | |||
| 29 || 48.5% || 97% | |||
|- | |||
| 30 || 50% || 100% | |||
|} | |||
== Uses == | == Uses == | ||
Loot items may be sacrificed to your God to gain favor points or exchanged for money or XP. Loot can not be sacrificed if a player does not follow a God. | |||
=== Exchanging === | === Exchanging === | ||
Loot can be exchanged for its value in money or a fourth of its value in XP by using <code>$exchange [loot_ids...]</code>. | |||
If a player leaves the <code>loot_ids</code> parameter empty, the bot will assume all owned loot items. | |||
=== Sacrificing === | === Sacrificing === | ||
Loot may also be sacrificed instead for favor with your chosen [[Gods|god]]. The command is <code>$sacrifice</code>. | Loot may also be sacrificed instead for favor with your chosen [[Gods|god]]. The command is <code>$sacrifice [loot_ids...]</code>. | ||
If a player leaves the <code>loot_ids</code> parameter empty, the bot will assume all owned loot items. | |||
== Obtainable Loot and Values == | == Obtainable Loot and Values == |
edits