function ADVR.onLoad() achievement.hideDescription = false achievement.category = "exploration" PlayerDamaged = false ConsecutiveCleanFloors = 0 achievement.predecessors = {achievements.THE_ANOSMIC} achievement.unlocksItem = "coins:20" end function ADVR.onDungeonGenerated(worldGenerator) PlayerDamaged = false end function ADVR.onAfterBossAreaGenerated(worldGenerator) if PlayerDamaged == false then ConsecutiveCleanFloors = ConsecutiveCleanFloors + 1 if ConsecutiveCleanFloors >= 2 then achievement.Unlock() end else ConsecutiveCleanFloors = 0 end end function ADVR.onPlayerHit(damage, damageSource, receivedDamageType, hitPosition, isStatsProbe) if not isStatsProbe and damage > 0 then PlayerDamaged = true end return damage end