33 lines
1.3 KiB
Plaintext
33 lines
1.3 KiB
Plaintext
|
init python:
|
||
|
def periodic_achievements():
|
||
|
if _in_replay is None:
|
||
|
if not achievements.status('gold') and game.gold >= 10000:
|
||
|
achievements.unlock("gold")
|
||
|
|
||
|
if not achievements.status('drunkard') and wine_ITEM.owned >= 25:
|
||
|
achievements.unlock("drunkard")
|
||
|
|
||
|
if not achievements.status('peta') and (game.day-phoenix_fed_counter) >= 50:
|
||
|
achievements.unlock("peta")
|
||
|
|
||
|
if not achievements.status('petpal') and phoenix_petted_counter >= 25:
|
||
|
achievements.unlock("petpal")
|
||
|
|
||
|
if not achievements.status('bros') and sna_friendship >= 100:
|
||
|
achievements.unlock("bros")
|
||
|
|
||
|
if not achievements.status('overwhored') and her_whoring >= 24:
|
||
|
achievements.unlock("overwhored")
|
||
|
|
||
|
if not achievements.status('fireplace') and stat_fireplace_counter >= 5:
|
||
|
achievements.unlock("fireplace")
|
||
|
|
||
|
if not achievements.status('workaholic') and stat_reports_counter >= 5:
|
||
|
achievements.unlock("workaholic")
|
||
|
|
||
|
def periodic_callbacks():
|
||
|
"""Call functions that need to be checked periodically (i.e. achievement unlocks) at around 20Hz"""
|
||
|
periodic_achievements()
|
||
|
|
||
|
define config.periodic_callback = periodic_callbacks
|