function p.payload(level, bp)
    max_value = ga_get_i("xar.player.gold.max")
    old_value = ga_get_i("xar.player.gold.amount")
    new_value = old_value + 200
    if( new_value > max_value ) then new_value = max_value end
    if ( new_value > old_value ) then
        ga_set_i("xar.player.gold.amount", new_value)
        ga_play_sound("pickup_gold_medium")
        game_bent.remove_temp(level, bp, 60 * 60)
        game_msg.add("You got " .. tostring(new_value - old_value) .. " gold")
    end
end

function p.get_touch_dist()
    return ga_get_f("xar.normal_bent_touch_dist")
end

function p.on_touch(level, bp)
    p.payload(level, bp)
end

function p.get_can_use(level, bp)
    return true
end

function p.get_use_msg(level, bp)
    return "200 Gold"
end

function p.on_use(level, bp)
    p.payload(level, bp)
end

function p.on_telekinesis(level, bp)
    p.payload(level, bp)
end
