#textdomain wesnoth-ei

#define ILLUMINATED_TZ_DAWN
    {DAWN}
    [+time]
        image=misc/time-schedules/default/schedule-dusk.png~BLIT(misc/tod-bright.png)
        lawful_bonus=25
    [/time]
#enddef
#define ILLUMINATED_TZ_MORNING
    {MORNING}
    [+time]
        image=misc/time-schedules/default/schedule-morning.png~BLIT(misc/tod-bright.png)
        lawful_bonus=25
    [/time]
#enddef
#define ILLUMINATED_TZ_AFTERNOON
    {AFTERNOON}
    [+time]
        image=misc/time-schedules/default/schedule-afternoon.png~BLIT(misc/tod-bright.png)
        lawful_bonus=25
    [/time]
#enddef
#define ILLUMINATED_TZ_DUSK
    {DUSK}
    [+time]
        image=misc/time-schedules/default/schedule-dusk.png~BLIT(misc/tod-bright.png)
        lawful_bonus=25
    [/time]
#enddef
#define ILLUMINATED_TZ_FIRSTWATCH
    {FIRST_WATCH}
    [+time]
        image=misc/time-schedules/default/schedule-firstwatch.png~BLIT(misc/tod-bright.png)
        lawful_bonus=0
    [/time]
#enddef
#define ILLUMINATED_TZ_SECONDWATCH
    {SECOND_WATCH}
    [+time]
        image=misc/time-schedules/default/schedule-secondwatch.png~BLIT(misc/tod-bright.png)
        lawful_bonus=0
    [/time]
#enddef

#define BRAZIER_ILLUMINATION_LONG_NIGHT X Y
    [item]
        x,y={X},{Y}
        halo=halo/fire-aura-small.png
        visible_in_fog=no
    [/item]
    [time_area] # illuminate everything in a 1 tile radius
        x,y={X},{Y}
        radius=1
        {ILLUMINATED_TZ_MORNING}
        {ILLUMINATED_TZ_AFTERNOON}
        {ILLUMINATED_TZ_DUSK}
        {ILLUMINATED_TZ_FIRSTWATCH}
        {ILLUMINATED_TZ_SECONDWATCH}
        {ILLUMINATED_TZ_FIRSTWATCH} # the regular TZ is dawn briefly, but Mal-Ravanal turns it into first watch before the player gets a turn
        {ILLUMINATED_TZ_FIRSTWATCH}
        {ILLUMINATED_TZ_FIRSTWATCH}
        {ILLUMINATED_TZ_FIRSTWATCH}
        {ILLUMINATED_TZ_FIRSTWATCH}
        {ILLUMINATED_TZ_FIRSTWATCH}
        {ILLUMINATED_TZ_SECONDWATCH}
        {ILLUMINATED_TZ_SECONDWATCH}
        {ILLUMINATED_TZ_SECONDWATCH}
        {ILLUMINATED_TZ_SECONDWATCH}
        {ILLUMINATED_TZ_SECONDWATCH}
        {ILLUMINATED_TZ_DAWN}
        {ILLUMINATED_TZ_DAWN}
        {ILLUMINATED_TZ_MORNING}
        {ILLUMINATED_TZ_MORNING} # turn 20
    [/time_area]

    [item]
        x,y={X},{Y}
        halo="items/brazier-lit[1~8].png:140"
        visible_in_fog=no
    [/item]

    # no need to undo illumination in a 0 tile radius,
    # because long night braizers are images, not overlays
#enddef

#define BRAZIER_ILLUMINATION_SECOND_WATCH X Y
    [item]
        x,y={X},{Y}
        halo=halo/fire-aura-small.png
    [/item]
    [time_area] # illuminate everything in a 1 tile radius
        x,y={X},{Y}
        radius=1
        current_time=5 # so this matches up with {DEFAULT_SCHEDULE_SECOND_WATCH}
        {ILLUMINATED_TZ_DAWN}
        {ILLUMINATED_TZ_MORNING}
        {ILLUMINATED_TZ_AFTERNOON}
        {ILLUMINATED_TZ_DUSK}
        {ILLUMINATED_TZ_FIRSTWATCH}
        {ILLUMINATED_TZ_SECONDWATCH}
    [/time_area]
    [time_area] # undo illumination in a 0 tile radius (braizer already illuminates)
        x,y={X},{Y}
        radius=0
        {DEFAULT_SCHEDULE_SECOND_WATCH}
    [/time_area]
#enddef

#define BRAZIER_ILLUMINATION_MORNING X Y
    [item]
        x,y={X},{Y}
        halo=halo/fire-aura-small.png
    [/item]
    [time_area] # illuminate everything in a 1 tile radius
        x,y={X},{Y}
        radius=1
        current_time=1 # so this matches up with {DEFAULT_SCHEDULE_MORNING}
        {ILLUMINATED_TZ_DAWN}
        {ILLUMINATED_TZ_MORNING}
        {ILLUMINATED_TZ_AFTERNOON}
        {ILLUMINATED_TZ_DUSK}
        {ILLUMINATED_TZ_FIRSTWATCH}
        {ILLUMINATED_TZ_SECONDWATCH}
    [/time_area]
    [time_area] # undo illumination in a 0 tile radius (braizer already illuminates)
        x,y={X},{Y}
        radius=0
        {DEFAULT_SCHEDULE_MORNING}
    [/time_area]
#enddef

#define BRAZIER_ILLUMINATION X Y
    [item]
        x,y={X},{Y}
        halo=halo/fire-aura-small.png
    [/item]
    [time_area] # illuminate everything in a 1 tile radius
        x,y={X},{Y}
        radius=1
        {ILLUMINATED_TZ_DAWN}
        {ILLUMINATED_TZ_MORNING}
        {ILLUMINATED_TZ_AFTERNOON}
        {ILLUMINATED_TZ_DUSK}
        {ILLUMINATED_TZ_FIRSTWATCH}
        {ILLUMINATED_TZ_SECONDWATCH}
    [/time_area]
    [time_area] # undo illumination in a 0 tile radius (braizer already illuminates)
        x,y={X},{Y}
        radius=0
        {DEFAULT_SCHEDULE}
    [/time_area]
#enddef

# Includes the color shifted ToDs used in the northern scenarios.

#define NORTHERN_DAWN
    {DAWN} {TOD_COLOR_SHIFT -20 -15 10}
#enddef

#define NORTHERN_MORNING
    {MORNING} {TOD_COLOR_SHIFT -5 -5 15}
#enddef

#define NORTHERN_MIDDAY
    {MIDDAY} {TOD_COLOR_SHIFT -5 -5 15}
#enddef

#define NORTHERN_AFTERNOON
    {AFTERNOON} {TOD_COLOR_SHIFT -5 -5 15}
#enddef

#define NORTHERN_DUSK
    {DUSK} {TOD_COLOR_SHIFT 0 -25 -30}
#enddef

#define NORTHERN_SCHEDULE
    {NORTHERN_DAWN}
    {NORTHERN_MORNING}
    {NORTHERN_AFTERNOON}
    {NORTHERN_DUSK}
    {FIRST_WATCH}
    {SECOND_WATCH}
#enddef

#define NORTHERN_WINTER_SCHEDULE
    {NORTHERN_DAWN}
    {NORTHERN_MIDDAY}
    {NORTHERN_DUSK}
    {FIRST_WATCH}
    {MIDNIGHT}
    {SECOND_WATCH}
#enddef
