{ id: "watercooler_of_health", zorder: -3, on_end_normal_anim: "animation('normal')", on_interact: "[ map(range( number_of_hearts), schedule(value * 20, spawn('heart_object.acquisition_fx',level.player.mid_x,level.player.mid_y, facing))), map(range( ceil((level.player.vars.max_mana-level.player.vars.mana)/1500) ), schedule(value * 20 + (20 * number_of_hearts), spawn('points_cube.acquisition_fx',level.player.mid_x,level.player.mid_y, facing))) ] where number_of_hearts = ceil((level.player.max_hitpoints - level.player.hitpoints)/2.0) ", platform_area: [11,0,22,1], editor_info: { category: "props", }, animation: [ { id: "normal", image: "props/fountain.png", rect: [0,64,31,111], pad: 0, frames: 4, duration: 4, interact_area: "all", }, { id: "normal", image: "props/fountain.png", rect: [128,64,159,111], pad: 0, frames: 4, duration: 3, interact_area: "all", }, ], particle_system: { id: "water_droplets", type: "simple", spawn_rate: 400, time_to_live: 47, min_x: 35, max_x: 50, min_y: 20, max_y: 28, velocity_y: -5000, velocity_x: -500, velocity_x_random: 1000, velocity_y_random: 600, accel_y: 230, animation: { id: "sparkle", image: "props/fountain.png", rect: [1,51,4,54], frames: 8, duration: 8, pad: 3, }, }, }