Time Units

From Harvest Festival
Jump to navigation Jump to search

Penguin-Lib has a time unit system that is used by a lot of the blocks/machines or other concepts. Each unit is measured in, in game ticks and makes it an easy way to lots of configuration without having to code them all individually. To add time units you need to make use of the Penguin-Lib database and create a csv in data/NAMESPACE/database/time_unit.csv, you can override existing ones if you use their relevant namespaces. Here's an example of the default values in Penguin-Lib itself.

Name,Duration
three_minutes,50
five_minutes,100
quarter_hour,250
half_hour,500
hour,1000
half_day,12000
day,24000
week,168000
year,2880000