Implement lua functions needed for Empire scenario 3
Bug #1675179 reported by
hessenfarmer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
widelands |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
while developing the scenario "Neptune's revenge" to eventually be mission number 3 in the empire campaign I realized that it would be helpful to have 2 new functions currently not part of the lua documentation / implementation.
1. A functionality to reinstate the complety black "fog of war" of a totally undiscovered field on the map. Currently there is only a funtion "hide_fields" which is hiding all activity on the map while still showing the map details seen last time. (this seems to be normal fog of war behaviour)
2. A lua function to check the target quantity of a specific ware in the economy options window would allow for a new type of mission objectives.
Related branches
lp:~widelands-dev/widelands/bug-1675179-lua-hide-fields
- SirVer: Approve
- kaputtnik (community): Approve (testing)
-
Diff: 120 lines (+47/-9)4 files modifiedsrc/logic/player.cc (+12/-6)
src/logic/player.h (+5/-1)
src/scripting/lua_game.cc (+6/-2)
test/maps/lua_testsuite.wmf/scripting/gplayer.lua (+24/-0)
lp:~widelands-dev/widelands/bug-1675179-lua-economy
- Klaus Halfmann: Approve (compile, review, test)
-
Diff: 321 lines (+248/-1)4 files modifiedsrc/scripting/lua_map.cc (+145/-1)
src/scripting/lua_map.h (+50/-0)
test/maps/lua_testsuite.wmf/scripting/geconomy.lua (+52/-0)
test/maps/lua_testsuite.wmf/scripting/init.lua (+1/-0)
Changed in widelands: | |
milestone: | none → build20-rc1 |
status: | New → Confirmed |
tags: | added: campaign lua |
Changed in widelands: | |
assignee: | nobody → GunChleoc (gunchleoc) |
summary: |
- missing/new lua functions + Implement lua functions needed for Empire scenario 3 |
Changed in widelands: | |
status: | Confirmed → In Progress |
Changed in widelands: | |
status: | In Progress → Fix Committed |
assignee: | GunChleoc (gunchleoc) → nobody |
To post a comment you must log in.
I noticed that we dont have object for economy and the stuff in point 2 is related to economy, not the player. Do you plan to introduce such LUA object?