extends "res://scripts/painting.gd"

func _looked_at(var body, var painting):
    ._looked_at(body, painting)
    
    if body.is_in_group("player") && (painting.get_name() == self.get_name()):
        var apclient = global.get_node("Archipelago")
        if !apclient._pilgrimage_allows_paintings:
            global.sunwarp = 1
            body.get_node("pivot/camera/sunwarp_background").visible = false