Skip to content

Commit

Permalink
TRoW: better lighthouse illumination simullation
Browse files Browse the repository at this point in the history
(it's not real illumination and can thus stack with Mage of Lights at night)
closes #3808
[ci skip]
  • Loading branch information
sevu committed Jan 5, 2019
1 parent b671ad7 commit 717625b
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 33 deletions.
54 changes: 36 additions & 18 deletions data/campaigns/The_Rise_Of_Wesnoth/scenarios/08_Clearwater_Port.cfg
Expand Up @@ -166,33 +166,51 @@
{INCOME 5 10 15}
[/side]

#Time Areas broken - no visible change, use a halo with it
[time_area]
x=34,35,36,36,36,35,34,33,32,32,32,33,34,35,35,34,33,33,34 #,37,37,31,31
y= 6, 7, 7, 8, 9,10,10,10, 9, 8, 7, 7, 7, 8, 9, 9, 9, 8, 8 #,8,9,8,9
{MORNING}
{MORNING}
{AFTERNOON}
{AFTERNOON}
{DUSK}
{DAWN}
[/time_area]

[event]
name=prestart

{PLACE_IMAGE (scenery/signpost.png) 33 8}
{PLACE_IMAGE (scenery/signpost.png) 8 17}
{PLACE_IMAGE (scenery/signpost.png) 1 10}
{PLACE_IMAGE (scenery/signpost.png) 36 18}
# Time Area for the lighthouse, simulating illumination
[time_area]
x,y=34,8
radius=2
id=lighthouse
# Schedule using the red, green, blue values from other ToDs,
# but overriding the image to fit the current ToD, and applying a bonus.
{MORNING} # (actually dawn)
[+time]
image=misc/time-schedules/default/schedule-dawn.png~BLIT(misc/tod-bright.png)
lawful_bonus=25
[/time]
{MORNING}
{AFTERNOON}
{AFTERNOON} # (actually dusk)
[+time]
image=misc/time-schedules/default/schedule-dusk.png~BLIT(misc/tod-bright.png)
lawful_bonus=25
[/time]
{DAWN} # (actually 1st night)
[+time]
image=misc/time-schedules/default/schedule-firstwatch.png~BLIT(misc/tod-bright.png)
lawful_bonus=0
[/time]
{DAWN} # (actually 2nd night)
[+time]
image=misc/time-schedules/default/schedule-secondwatch.png~BLIT(misc/tod-bright.png)
lawful_bonus=0
[/time]
[/time_area]

[item]
x=34
y=8
x,y=34,8
image=scenery/lighthouse.png
halo=halo/lighthouse-aura.png
[/item]

{PLACE_IMAGE (scenery/signpost.png) 33 8}
{PLACE_IMAGE (scenery/signpost.png) 8 17}
{PLACE_IMAGE (scenery/signpost.png) 1 10}
{PLACE_IMAGE (scenery/signpost.png) 36 18}

[recall]
id=Lady Jessene
[/recall]
Expand Down
47 changes: 32 additions & 15 deletions data/campaigns/The_Rise_Of_Wesnoth/scenarios/12_A_Final_Spring.cfg
Expand Up @@ -154,29 +154,46 @@
[/ai]
[/side]

#Time Areas broken - no visible change, use a halo with it
[time_area]
x=1,1,1,2,2,2,2,3,3,3,3,3,4,4,4,4,5,5,5 #,6,6
y=17,18,19,16,17,18,19,16,17,18,19,20,16,17,18,19,17,18,19 #,17,18
{MORNING}
{MORNING}
{AFTERNOON}
{AFTERNOON}
{DUSK}
{DAWN}
[/time_area]

[event]
name=prestart

#{PLACE_IMAGE (scenery/lighthouse.png) 3 18}
[item]
x=3
y=18
x,y=3,18
image=scenery/lighthouse.png
halo=halo/lighthouse-aura.png
[/item]

# Time Area for the lighthouse, simulating illumination
[time_area]
x,y=3,18
radius=2
id=lighthouse
# Schedule using the red, green, blue values from other ToDs,
# but overriding the image to fit the current ToD, and applying a bonus.
{MORNING} # (actually dawn)
[+time]
image=misc/time-schedules/default/schedule-dawn.png~BLIT(misc/tod-bright.png)
lawful_bonus=25
[/time]
{MORNING}
{AFTERNOON}
{AFTERNOON} # (actually dusk)
[+time]
image=misc/time-schedules/default/schedule-dusk.png~BLIT(misc/tod-bright.png)
lawful_bonus=25
[/time]
{DAWN} # (actually 1st night)
[+time]
image=misc/time-schedules/default/schedule-firstwatch.png~BLIT(misc/tod-bright.png)
lawful_bonus=0
[/time]
{DAWN} # (actually 2nd night)
[+time]
image=misc/time-schedules/default/schedule-secondwatch.png~BLIT(misc/tod-bright.png)
lawful_bonus=0
[/time]
[/time_area]

{PLACE_IMAGE ("units/transport/transport-galleon.png~RC(magenta>blue)") 17 24}
{PLACE_IMAGE ("units/transport/transport-galleon.png~RC(magenta>blue)") 20 22}
{PLACE_IMAGE ("units/transport/galleon.png~RC(magenta>blue)") 21 25}
Expand Down

0 comments on commit 717625b

Please sign in to comment.