URL:
  <http://gna.org/patch/?3197>

                 Summary: "reapply_fog"
                 Project: Battle for Wesnoth
            Submitted by: jamit
            Submitted on: Tue 20 Mar 2012 08:54:28 PM EDT
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

This is the requested patch to allow WML to refog in the middle of a turn. It
adds three keys to existing tags.

*[modify_side] reset_maps=yes/no, default no:*
If set to yes, then the shroud is spread to all hexes. (Probably most useful
when turning shroud on for the second time, as shroud defaults to all hexes,
and if shroud is already in effect, [place_shroud] can easily be used to
shroud everything.) This key is evaluated after shroud= and before
shroud_data=. The name is based on "share_maps".

*[modify_side] reset_view=yes/no, default no:*
If set to yes, then the fog is spread to all hexes. (Probably most useful when
turning fog on for the second time, as fog defaults to all hexes, and if fog
is already in effect, the new key for [reset_fog] serves the same purpose.)
This key is evaluated after fog=. The name is based on "share_view".

*[reset_fog] reset_view=yes/no, default no:*
If set to yes, then the fog is spread to all hexes. This fogging is not
limited by the tag's SLF; rather it simply cancels what the side's units have
seen this turn.

For both reset_view= keys, it is the side's view that is reduced to nothing.
Hexes visible by virtue of allies or [lift_fog] remain unfogged for as long as
those considerations apply. For all three keys, the side must have fog/shroud
enabled (as appropriate) for the keys to have an effect. These keys do not
take into account current unit vision; that usually happens when an event
chain ends, and in other cases (fairly rare?) a [redraw] tag would need to be
used. In any event, this matches the current behavior of [place_shroud].

I've looked at Espreon's WML, and these keys should satisfy those needs (as
well as simplifying that WML a bit to boot).



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Tue 20 Mar 2012 08:54:28 PM EDT  Name: reset_view.diff  Size: 5kB   By:
jamit
New keys for [modify_side] and [reset_fog]
<http://gna.org/patch/download.php?file_id=15390>

    _______________________________________________________

Reply to this item at:

  <http://gna.org/patch/?3197>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to