[logic]
active = ph_idle
on_hit = hit

[hit]
on_info = {+mil_freedom_under_attack} ph_idle@hit2 %+mil_matugalnik_off%, ph_idle@hit %+mil_matugalnik_off%

[ph_idle@hit]
on_game_timer = 50000 | ph_idle %-mil_matugalnik_off%

[ph_idle@hit2]
on_game_timer = 300000 | ph_idle %-mil_matugalnik_off%


[ph_idle]
on_info = {+mil_freedom_under_attack} ph_sound2, {+mil_freedom_alarm} ph_sound2
on_info2 = {=is_day !hours_multiple(2) !is_heavy_rain} ph_sound1

[ph_sound1]
snd = music
on_info = {+mil_freedom_under_attack} ph_sound2, {+mil_freedom_alarm} ph_sound2
on_info2 = {!is_day} ph_idle, {=hours_multiple(2)} ph_idle, {=is_heavy_rain} ph_idle

[ph_sound2]
snd = siren
on_info = {-mil_freedom_under_attack -mil_freedom_alarm} ph_idle
on_timer = 60000 | %-mil_freedom_alarm%
looped = true
