-------------------------------------------------
--            Type Init Function
-------------------------------------------------

function p.type_init(id)
    game_ment_type_init.monster(id)
    ia_ment_set_builtin_var_f(id, "__respawn_length", 60*60)
    ia_ment_set_builtin_var_f(id, "__radius", 3.5)
    ia_ment_set_builtin_var_s(id, "__mesh", "MonsterMystic")
    ia_ment_new_var_i(id, "health", 100000, 60.0)
    ia_ment_new_static_var_f(id, "dps", 15.0)
    ia_ment_new_static_var_s(id, "sound_hurt", "hurt_mystic")
    ia_ment_new_static_var_f(id, "sound_hurt_period", 0.7)
    ia_ment_new_static_var_s(id, "sound_death", "die_mystic")
    ia_ment_new_static_var_s(id, "die_drop_bent", "bent_upgrade_gun_0_damage")
    ia_ment_new_static_var_s(id, "die_drop_box_txt", "Hole Damage Upgrade")
    ia_ment_new_static_var_b(id, "die_drop_box_allow", true)
    ia_ment_new_static_var_i(id, "die_drop_extra_levels", 1)
    ia_ment_new_static_var_s(id, "identity_str", "Mystic")
    ia_ment_new_static_var_b(id, "shoots", false) --the default.
    --
    ia_ment_new_static_var_b(id, "damage_aura_has", true)
    ia_ment_new_static_var_f(id, "damage_aura_duration", 1.0)
    ia_ment_new_static_var_i(id, "damage_aura_damage", 15)
    ia_ment_new_static_var_f(id, "damage_aura_radius", -1.0)
    ia_ment_new_var_f(id, "damage_aura_next_time", 0.0, 60.0)
end

-------------------------------------------------
--              Inst Functions
-------------------------------------------------

function p.on_add_to_live_world(inst_id)
    game_ment_add_to_live.monster(inst_id)
end

function p.on_alarm(inst_id, alarm_name)
    game_ment_alarms.monster(inst_id, alarm_name)
end

function p.on_die(inst_id)
    game_ment_die.main(inst_id)

    --Could make a helper function for this.
    --xar_ment_helpers.create_ment_drop(
    --    inst_id, "monster_mystic_drop", 1.0)
end
