Lua functions for getting the name of a tile's terrain and for getting the flags of a tile

Bug #1328664 reported by Andre Novellino Gouvêa on 2014-06-10
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Stratagus
Fix Released
Undecided
cybermind

Bug Description

This is not a bug per se, but I think that it would be good to have Lua functions for 1) Getting a tile's terrain name, and 2) Getting whether a tile has a certain flag or not.

I created a patch with functions that do exactly that, and I tested the patch and it works. I attached the patch to this report.

My changes in the patch are tagged with "//Wyrmgus start" and "//Wyrmgus end" to make it easier to identify them; should this patch be accepted, I suggest removing those comment tags.

These functions are very helpful for correctly generating units and buildings during random map generation.

Related branches

description: updated
Kyran Jackson (erstmap) wrote :

Andre, you know you want to port map generation to Wargus. :)

cybermind (iddqd-mail) wrote :

Added in rev.8911

Changed in stratagus:
status: New → Fix Committed
assignee: nobody → cybermind (iddqd-mail)
cybermind (iddqd-mail) on 2015-03-19
Changed in stratagus:
status: Fix Committed → Fix Released
milestone: none → 2.3
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers