Fixed a windy room issue
This commit is contained in:
parent
083834d044
commit
81ccf8a730
|
@ -435,7 +435,7 @@ local function build_normal_room(room)
|
||||||
if CURRENT_LEVEL > 5 and random(8) == 1 then
|
if CURRENT_LEVEL > 5 and random(8) == 1 then
|
||||||
room.modifier.type = "FIRE"
|
room.modifier.type = "FIRE"
|
||||||
room.modifier.arg = ""
|
room.modifier.arg = ""
|
||||||
elseif (not pitsAdded and CURRENT_LEVEL > 1) or CURRENT_LEVEL > 3 and random(8) == 1 then
|
elseif ((not pitsAdded and CURRENT_LEVEL > 1) or CURRENT_LEVEL > 3) and random(8) == 1 then
|
||||||
directions = { "LEFT", "RIGHT", "UP", "DOWN" }
|
directions = { "LEFT", "RIGHT", "UP", "DOWN" }
|
||||||
room.modifier.type = "WINDY"
|
room.modifier.type = "WINDY"
|
||||||
room.modifier.arg = directions[random(#directions)]
|
room.modifier.arg = directions[random(#directions)]
|
||||||
|
|
|
@ -631,7 +631,7 @@ skill_create(enum SkillType t, Camera *cam)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef DEBUG_SKILLS
|
#ifdef DEBUG
|
||||||
skill->levelcap = 1;
|
skill->levelcap = 1;
|
||||||
#endif
|
#endif
|
||||||
return skill;
|
return skill;
|
||||||
|
|
Loading…
Reference in New Issue