tl;dr: yes, your assumption is correct.
longer:
local rv = plr:get_buildings{"well", "burners_house"}
returns a lua table of tables (see
https://wl.widelands.org/docs/wl/autogen_wl_game/#wl.game.Player.get_buildings).
It will therefore return { "well": { b1,b2}, "burners_house": { b1}} and so o
>the # operator means length in lua.
Aha, so that's what it does.
> Ie. rv["well"] is the same as rv.well
Hm, like Javascript then.
Think that should be all then.
--
https://code.launchpad.net/~widelands-dev/widelands/furnace/+merge/227810
Your team Widelands Developers is subscribed to branch
Review: Approve
LGTM
--
https://code.launchpad.net/~widelands-dev/widelands/furnace/+merge/227810
Your team Widelands Developers is subscribed to branch
lp:~widelands-dev/widelands/furnace.
___
Mailing list: https://launchpad.net/~widelands-dev
Post t
The proposal to merge lp:~widelands-dev/widelands/furnace into lp:widelands has
been updated.
Status: Needs review => Merged
For more details, see:
https://code.launchpad.net/~widelands-dev/widelands/furnace/+merge/227810
--
https://code.launchpad.net/~widelands-dev/widelands/furnace/+merge
Pushed to trunk.
I've updated
https://wl.widelands.org/wiki/TranslationDictionaryTemplate/
and
https://wl.widelands.org/wiki/Terminology%20Correspondence%20Table/
--
https://code.launchpad.net/~widelands-dev/widelands/furnace/+merge/227810
Your team Widelands Developers is subscribed to branch
l
GunChleoc has proposed merging lp:~widelands-dev/widelands/bug-1351620 into
lp:widelands.
Requested reviews:
Widelands Developers (widelands-dev)
Related bugs:
Bug #1351620 in widelands: "boost::too_many_args: during battle"
https://bugs.launchpad.net/widelands/+bug/1351620
For more detail
GunChleoc has proposed merging lp:~widelands-dev/widelands/boost_format into
lp:widelands.
Requested reviews:
Widelands Developers (widelands-dev)
For more details, see:
https://code.launchpad.net/~widelands-dev/widelands/boost_format/+merge/229366
Replaced most instances of snprintf with boo
GunChleoc has proposed merging lp:~widelands-dev/widelands/fix_regression_tests
into lp:widelands.
Requested reviews:
Widelands Developers (widelands-dev)
For more details, see:
https://code.launchpad.net/~widelands-dev/widelands/fix_regression_tests/+merge/229367
Renamed burners_house => cha
8 matches
Mail list logo