WC2: make era usable for PvP
still disabled though
This commit is contained in:
parent
dd4116f740
commit
6d29cd7d07
2 changed files with 6 additions and 2 deletions
|
@ -357,8 +357,11 @@ wc2_utils.menu_item {
|
||||||
if not wc2_era.get_faction(wesnoth.interface.get_viewing_side()) then
|
if not wc2_era.get_faction(wesnoth.interface.get_viewing_side()) then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
if wc2_artifacts.is_item_at(x, y) then
|
-- check whether wc2_artifacts is loaded
|
||||||
return false
|
if wml.variables.wc2_scenario then
|
||||||
|
if wc2_artifacts.is_item_at(x, y) then
|
||||||
|
return false
|
||||||
|
end
|
||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
end,
|
end,
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
-- the main file for the WC2 mp era
|
-- the main file for the WC2 mp era
|
||||||
|
|
||||||
wc2_utils = wesnoth.require('./game_mechanics/utils.lua')
|
wc2_utils = wesnoth.require('./game_mechanics/utils.lua')
|
||||||
|
wc2_color = wesnoth.require('./game_mechanics/color.lua')
|
||||||
wc2_era = wesnoth.require('./era/era.lua')
|
wc2_era = wesnoth.require('./era/era.lua')
|
||||||
|
|
Loading…
Add table
Reference in a new issue