Skip to content

Commit

Permalink
T S1: fixed indent on the lua block
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Dec 30, 2014
1 parent 3976a5e commit 6ff92ae
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions data/campaigns/tutorial/scenarios/01_Tutorial_part_1.cfg
Expand Up @@ -208,14 +208,14 @@ You are standing on the keep, and your mentor Delfador is on the east side of th

[lua]
code= <<
local unit = wesnoth.get_units({id = "student"})[1]
local hp_diff = unit.max_hitpoints - unit.hitpoints
local unit = wesnoth.get_units({id = "student"})[1]
local hp_diff = unit.max_hitpoints - unit.hitpoints

if hp_diff > 7 then hp_diff = 8 end
if hp_diff > 7 then hp_diff = 8 end

wesnoth.set_variable("student_hp", unit.hitpoints)
wesnoth.set_variable("student_hp_heal_amount", hp_diff)
>>
wesnoth.set_variable("student_hp", unit.hitpoints)
wesnoth.set_variable("student_hp_heal_amount", hp_diff)
>>
[/lua]
[/event]

Expand Down

0 comments on commit 6ff92ae

Please sign in to comment.