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
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

Revision history for this message
Andre Novellino Gouvêa (andre-ng) wrote :
description: updated
Revision history for this message
Kyran Jackson (erstmap) wrote :

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

Revision history for this message
cybermind (iddqd-mail) wrote :

Added in rev.8911

Changed in stratagus:
status: New → Fix Committed
assignee: nobody → cybermind (iddqd-mail)
cybermind (iddqd-mail)
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.