Trash: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
imported>Teamtotobot
m (Bot: Automated text replacement (-{{Item nostore +{{Item))
(Updated by egocarib with game version 2.0.206.57 using QBE v1.0rc2)
 
(16 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{stub}}
{{Missing info | What kind of secret is an observation?}}
 
<!-- START QBE: Autogenerated section - please leave this marker. See the [[QBE]] page for more information. -->
{{Item
{{Item
| title = trash
| title = {{Qud text|trash}}
| image = trash.png
| image = trash.png
| commerce = 0
| overrideimages = {{altimage start}}{{altimage | trash.png | type = random sprite #1}}{{altimage | trash variation 1.png | type = random sprite #2}}{{altimage | trash variation 2.png | type = random sprite #3}}{{altimage | trash variation 3.png | type = random sprite #4}}{{altimage end}}
| weight = 5
| featureweightinfo = yes
| commerce = 0.01
| id = Garbage
| id = Garbage
| skill = [[Scavenger]], [[Trash Divining]]
| colorstr = &amp;K^k
| weight = 5
| tilecolors = K
| renderstr = %
| renderstr = %
| colorstr = &amp;K
| extra = {{Extra info|solid = no}}
| inheritingfrom = Item
| dynamictable = {{Dynamic object|Items|Garbage}}
| desc = A pile of debris.
| desc = A pile of debris.
| categories = Terrain Features
| gameversion = 2.0.206.57
}}
}}
[[Category:Items]]
<!-- END QBE -->
Trash is good. You can rifle through it for scrap and secrets with scavenger and trash diviner respectively. Sometimes you find items. Better trash is deeper underground. Trash burns very well.
Piles of {{name}} are practically ubiquitous throughout Qud. While of little monetary value on their own, they are extremely valuable in combination with the [[Scavenger]] and [[Trash Divining]] skills, which transform them into items and [[secret]]s, respectively. A single act of rifling through trash has the potential to yield both an item and a secret, if the rifler has the appropriate skills.{{Code Reference | class = Garbage | method = AttemptRifle | 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" />. The item tier is calculated as '''Depth / 4''' rounded down, with a minimum value of 1 and a maximum value of 8.
 
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}}
 
== References ==

Latest revision as of 03:01, 19 January 2024

This article has information that is missing or not up to par.
Reason: What kind of secret is an observation?
trash
$
0.01
Commerce Value
5
lbs.
Weight
Character

%

ID?Use this ID to Wish for the item

Garbage

Spawns in

Items

Extra Info:
  • Can be walked on/through
trash

A pile of debris.

Perfect

Piles of trash are practically ubiquitous throughout Qud. While of little monetary value on their own, they are extremely valuable in combination with the Scavenger and Trash Divining skills, which transform them into items and secrets, respectively. A single act of rifling through trash has the potential to yield both an item and a secret, if the rifler has the appropriate skills.[1]

The depth at which a given pile of trash first appears[2] determines what tier of items are likely to be found from rifling through it.[1]. The item tier is calculated as Depth / 4 rounded down, with a minimum value of 1 and a maximum value of 8.

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.[3])

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.[4]

References

  1. 1.0 1.1 XRL.World.Parts.Garbage, method AttemptRifle
  2. XRL.World.Parts.Garbage, method HandleEvent(EnteredCellEvent)
  3. EncounterTables.xml; search for .Junk Tables to find the appropriate place in the file
  4. Qud.API.JournalAPI, method GetRandomUnrevealedNote