function ADVR.onLoad() achievement.psvrID = 42 achievement.hideDescription = false achievement.unlocksItem = relics.FRAGRANCED_LETTER achievement.category = "trial" CanUnlock = true HasEatenFoodKey = "ach_empty_belly_eaten_food" achievement.predecessors = {achievements.MOSQUITO_BITE} end function ADVR.onDungeonGenerated(worldGenerator) if helperMethods.IsInFirstDungeon(worldGenerator) then game.SaveBool(HasEatenFoodKey, false) end end function ADVR.onPlayerDeath() CanUnlock = false game.SaveBool(HasEatenFoodKey, true) end function ADVR.onFoodEaten() CanUnlock = false game.SaveBool(HasEatenFoodKey, true) end function ADVR.onRunComplete() if CanUnlock == true and game.LoadBool(HasEatenFoodKey, false) == false then achievement.Unlock() end end