Oddly-Hued Glowpad: Difference between revisions

Jump to navigation Jump to search
741 bytes removed ,  18:38, 6 August 2019
no edit summary
(manual update, added blurb)
No edit summary
Line 61: Line 61:
|}
|}
<small>From XRL.World.Encounters.EncounterObjectBuilders.GlowpadOasisWares.cs</small>
<small>From XRL.World.Encounters.EncounterObjectBuilders.GlowpadOasisWares.cs</small>
<!--there is no restocker part currently, but I already did the math so feel free to uncomment this when it's fixed-->
 
<!--==Restocking==
==Restocking==
The {{name}} also has a restock frequency of 14 days instead of the standard generic trader's 5 days.
The {{name}} also has a restock frequency of 14 days instead of the standard generic trader's 5 days.
 
It uses the regular Restocker part, so a restock will always happen after 16,800 game ticks (14 days).
<math>\text{LastRestockTick} = \text{TickOnCreation} + \text{Random}(8400, 16800)</math>
 
<math>\text{num1} = \text{InGameTurn} - \text{LastRestockTick} \ge 16800</math> <math>\rightarrow</math>
 
<math>\text{RestockCheck} = \frac { \text{71}}{16800} \times \text{num1} </math>
<math>\rightarrow</math>
 
If <math>\text{RestockCheck} \ge 100</math> or <math>\text{RestockCheck} \ge \text{Random}(1,100)</math>, the {{name}} will restock.
 
This means that the earliest they will restock is 16,800 game ticks (or 14 days) at a 71% chance of restocking, or 23,662 game ticks (19.7 days) for a 100% chance of restocking, or 25,200 game ticks (21 days) for a 100% chance if this is the first time the {{name}} is restocking.-->


==Dialogue==
==Dialogue==

Navigation menu