Trash: Difference between revisions

13 bytes added ,  06:07, 13 November 2020
m
put <code> around EncounterTables.xml
(flesh out article)
m (put <code> around EncounterTables.xml)
Line 21: Line 21:
The depth at which a given pile of trash first appears{{Code Reference | class = Garbage | method = HandleEvent(EnteredCellEvent)}} determines what tier of items are likely to be found from rifling through it.<ref name="attempt-rifle-method" />
The depth at which a given pile of trash first appears{{Code Reference | class = Garbage | method = HandleEvent(EnteredCellEvent)}} determines what tier of items are likely to be found from rifling through it.<ref name="attempt-rifle-method" />


Whenever a creature rifles trash while having the Scavenger skill, there is a 25% chance they will find an item. Roughly 96% of the time this happens, this item will be scrap randomly generated from the table of the appropriate tier. The other roughly 4% of the time it will instead be one of an assortment of items, again rolled based on tier. (The chance of scrap is actually larger than 96%, because the same table that provides the non-scrap items also has a possibility of yielding scrap.<ref>EncounterTables.xml; search for <code>.Junk Tables</code> to find the appropriate place in the file</ref>)
Whenever a creature rifles trash while having the Scavenger skill, there is a 25% chance they will find an item. Roughly 96% of the time this happens, this item will be scrap randomly generated from the table of the appropriate tier. The other roughly 4% of the time it will instead be one of an assortment of items, again rolled based on tier. (The chance of scrap is actually larger than 96%, because the same table that provides the non-scrap items also has a possibility of yielding scrap.<ref><code>EncounterTables.xml</code>; search for <code>.Junk Tables</code> to find the appropriate place in the file</ref>)


Whenever the player (and ''only'' the player) rifles while having Trash Divining, there is a 5% chance they learn a secret they did not already know. Possible secrets include [[sultan]] lore, observations, and locations.{{Code Reference | namespace = Qud.API | class = JournalAPI | method = GetRandomUnrevealedNote}}
Whenever the player (and ''only'' the player) rifles while having Trash Divining, there is a 5% chance they learn a secret they did not already know. Possible secrets include [[sultan]] lore, observations, and locations.{{Code Reference | namespace = Qud.API | class = JournalAPI | method = GetRandomUnrevealedNote}}


== References ==
== References ==