Difference between revisions of "Template:Ticks/gametime/hours/doc"

From RimWorld Wiki
Jump to navigation Jump to search
(Created doc, based on Template:Ticks/minutes/doc)
 
m (Fixed incorrect text in example 1 code snippet)
 
Line 16: Line 16:
  
 
===== Example 2 =====
 
===== Example 2 =====
<pre>There are {{ticks/gametime/hours|3600000}} in one in-game year, so one in-game year consists of {{ticks/gametime/hours|3600000}}.</pre>
+
<pre>There are {{ticks/gametime/hours|60000}} in one in-game day, so one in-game day consists of {{ticks/gametime/hours|60000}}.</pre>
 
There are {{ticks/gametime/hours|60000}} in one in-game day, so one in-game day consists of {{ticks/gametime/hours|60000}}.
 
There are {{ticks/gametime/hours|60000}} in one in-game day, so one in-game day consists of {{ticks/gametime/hours|60000}}.
  

Latest revision as of 00:18, 11 November 2022

Converts ticks to in-game hours, so you don't have to!

Usage[edit]

  • Specify the time in ticks
  • Time in in-game hours is automatically calculated and added after the time in ticks.
{{ticks/gametime/hours|time in ticks}}

Examples[edit]

Example 1[edit]
At this rate, it will take {{ticks/gametime/hours|3000}} to complete

At this rate, it will take 3,000 ticks (1.2 in-game hours) to complete.

Example 2[edit]
There are {{ticks/gametime/hours|60000}} in one in-game day, so one in-game day consists of {{ticks/gametime/hours|60000}}.

There are 60,000 ticks (24 in-game hours) in one in-game day, so one in-game day consists of 60,000 ticks (24 in-game hours).

Relationship to Template:Ticks[edit]

The original Template:Ticks would only show results in real time, which isn't very useful for things that take hours, days, or even years. What sounds better? 6,000 ticks (1.67 mins) or 6,000 ticks (2.4 in-game hours)?