19758 Commits

Author SHA1 Message Date
Alain O'Dea
877e897f72 Grammar: missing preposition in tutorial 1 victory 2014-06-22 16:37:44 +00:00
Chris Beck
14808e186b add unit test for an object-based "feeding" ability
based on tekelili's forum post here:
http://forums.wesnoth.org/viewtopic.php?f=8&t=40449#p572206
2014-06-21 22:08:32 -04:00
Chris Beck
762efc278f add error reporting to [insert_tag] if it has no variable= field
The lack of reporting here is somewhat annoying so i patched it.
2014-06-21 18:13:42 -04:00
Chris Beck
5e9d356c9f unit tests for defining custom event handlers in events and firing 2014-06-21 16:58:40 -04:00
Ignacio R. Morelle
da8f3c824c NR: Search for White Magi respawn locs only within map edges (bug #22097)
Without this, the engine may match map borders and send the respawnee
back to the player's recall list as those count as invalid locations
like "recall","recall".
2014-06-21 10:17:42 -04:00
Ignacio R. Morelle
ce33ba394a NR: Refactor the White Magi respawn location finding code into a macro
This bit was subject to a particularly bad case of code copy-pasting
when the only real variable is the id of the first respawn hub
candidate.

Added a statement to clear the respawn_hub WML variable after running
the code since it's never used again afterwards.
2014-06-21 10:07:33 -04:00
Ignacio R. Morelle
6e90e01d70 Add a test case for bug #22215 2014-06-20 21:51:17 -04:00
Ignacio R. Morelle
17c8d568d5 gui2/tgame_cache_options: New Preferences subdialog for cache management
It allows the user to browse to the cache (using a desktop API call),
copy its path to clipboard, clean the cache contents (deleting stale
files), or purge it entirely.

This is ideal for people sticking to the same cache dir for very long
and thus keeping content that was generated by previous versions of
Wesnoth they might not even use anymore. Purging the cache might also
aid troubleshooting (although there is a --nocache switch for that too).

The dialog also makes Wesnoth slightly more transparent about its own
disk usage, information which may not be readily accessible to people
without the technical know-how to locate a hidden directory.

For now it's accessed by pushing a button in Preferences -> General,
even though this is not ideal since it is actually Advanced Preferences
material given the nature of the cache. Unfortunately, the Advanced
page's layout is currently monopolized by the advanced preferences
options and I'm not interested right now in solving that UI design
puzzle; it will have to wait, much like the Paths dialog has done and
continues to do for 1.12.
2014-06-19 20:43:36 -04:00
mattsc
474b8990d8 Return Guardian MAI: fix bug when path to return hex is blocked
Such as when the unit is surrounded.
2014-06-19 11:30:02 -07:00
mattsc
1491934224 Random Recruit Micro AI: fix bug with custom castle terrain
Previously, only terrain with C or K in the terrain code passed the
SLF.  Now we check whether the hex is a castle instead, independent of
the terrain code.
2014-06-19 09:33:17 -07:00
Turuk
475bcf504d NR S1 Dialogue/Map Update
The dialogue was changed to make it less basic, and the map was altered
to have the player start in the West, with Al'Tar now to the North.
This enables the player to be more actively involved in the battle
earlier on in the scenario.
2014-06-19 12:17:48 -04:00
Ignacio R. Morelle
8a30f348b1 gui2/tchat_log: Use a separate proper label for the page number text
This replaces the page number slider with a "minimal" variant slider and
an adjacent label widget whose text we enter manually.

The label format is "<PAGE>/<COUNT>" and it's untranslatable. Hopefully
this shouldn't cause any localization issues since it's all numbers and
we currently can't use alternative numeral systems anyway.

I'm leaving the page slider's maximum_value_label attribute intact just
in case this needs to be reverted later, since it's going into the 1.12
branch too.
2014-06-19 02:40:16 -04:00
Ignacio R. Morelle
a286bf1908 gui2/tslider: Add minimal variant without a text label
The default variant's text label is both inflexible in content (can't
customize the format for non-edge values) and layout (reserves way more
space than it needs at a time for its text label, often resulting in
huge horizontal gaps between a slider and an adjacent widget). This
makes it unsuitable for use in gui2::tchat_log.

This new minimal variant will be wired into gui2::tchat_log next.
2014-06-19 02:40:16 -04:00
Turuk
f39142c676 Fixed Gold arguments. 2014-06-18 23:18:56 -04:00
Turuk
0b3ea2a36e Altered WML that allowed for 4 difficulty levels. 2014-06-18 15:38:27 -04:00
Turuk
9e0b9ab6f0 Altered WML that allowed for 4 difficulty levels. 2014-06-18 15:36:23 -04:00
Turuk
54b8fd9581 Altered WML that allowed for 4 difficulty levels. 2014-06-18 15:32:27 -04:00
Turuk
0b18d2aac5 Altered WML that allowed for 4 difficulty levels. 2014-06-18 15:25:08 -04:00
Turuk
2e5eafc2c6 Altered WML that allowed for 4 difficulty levels. 2014-06-18 15:08:54 -04:00
Turuk
a062c17ebe Altered WML that allowed for 4 difficulty levels. 2014-06-18 14:50:54 -04:00
Turuk
b7b74b4b96 Altered WML that allowed for 4 difficulty levels. 2014-06-18 14:45:37 -04:00
Turuk
a12340c3d5 Altered WML that allowed for 4 difficulty levels. 2014-06-18 14:42:45 -04:00
Turuk
8e645c4605 Altered WML that allowed for 4 difficulty levels. 2014-06-18 14:30:41 -04:00
Turuk
ac36feeee1 Altered WML that allowed for 4 difficulty levels. 2014-06-18 14:17:19 -04:00
Turuk
85913e2ac2 Altered WML that allowed for 4 difficulty levels. 2014-06-18 14:13:43 -04:00
Turuk
130574cd9a Altered WML that allowed for 4 difficulty levels. 2014-06-18 14:12:23 -04:00
Turuk
9ad308501e Altered WML that allowed for 4 difficulty levels. 2014-06-18 14:07:03 -04:00
Turuk
46f5ff36d3 Altered difficulties= 2014-06-18 14:03:59 -04:00
Turuk
a15c39fe17 Changed from 4 to 3 difficulty levels for balancing.
Revamping difficulty levels to aid in upcoming balancing for "expert" campaign.
2014-06-18 14:03:20 -04:00
Espreon
c8848813fd Improved theme descriptions 2014-06-16 13:19:54 -04:00
mattsc
156726a6a4 ai_helper.move_unit_out_of_way: fix direction rating
This is supposed to be a minor rating, secondary to the main rating.
2014-06-16 08:08:01 -07:00
mattsc
9e8ee00ad0 battle_calcs: provide default value for resistance modifiers
This is done for cases when the value cannot be read from the unit_info
table, which might happen in some UMC.  This fixes a rare bug affecting
the Fast Micro AI attack evaluation
2014-06-15 19:34:25 -07:00
Lari Nieminen
17974a4bb1 Refresh fog/shroud when the Ghouls appear 2014-06-16 00:26:50 +03:00
mattsc
faeaf5e47c ai_helper.get_attacks: improve check for units in the way
Check whether the unit in the way has an unoccupied hex to move to.
Previously, it was only checked whether its reach was >1, which
sometimes can include only hexes occupied by units on its own side,
making the actual move impossible.
2014-06-15 14:22:18 -07:00
mattsc
ded53dd332 Stationed Guardian Micro AI: make guard_x/y optional keys
If not provided, they now default to stationed_x/y.
2014-06-15 11:59:36 -07:00
mattsc
9645fc466b Coward Micro AI: add optional attack_if_trapped key
If set, the unit attacks the weakest enemy next to which it ends up at
the end of its move.
2014-06-15 07:21:34 -07:00
Ignacio R. Morelle
369b24103e gui2/tcore_selection: Make the listbox grow vertically
This allows its top to be aligned to the dialog's top so it's not
centered vertically.
2014-06-14 23:35:41 -04:00
Ignacio R. Morelle
e7b14b41e1 Use Title Case for core names since they are used in menu context 2014-06-14 23:33:45 -04:00
Ignacio R. Morelle
8712e60bee gui2/taddon_filter_options: Make SP/MP campaigns checkbox use Sentence case
For consistency with all other non-menu/listbox checkboxes.

pofix rule included and applied.
2014-06-14 23:29:35 -04:00
Mark de Wever
02b761b24e Set the minimum width for a listbox cell.
This fixes bug #22046.
2014-06-14 14:43:45 +02:00
mattsc
dac6a2e152 SotBE: minor rebalancing of scenarios 15, 17 and 18
Based on play-testing on nightmare difficulty by Maiklas3000 and Theron.
2014-06-13 12:37:52 -07:00
Alexander van Gessel
07a6ba695e Merge pull request #199 from aquileia/ignore
Restructure and merge .gitignore files
2014-06-13 16:27:01 +02:00
Ignacio R. Morelle
d0d95f2f9f wam: Use a tuple for the --change-passphrase argument's metavar
Fixes its help entry looking like this:

>  --change-passphrase ADD-ON OLD NEW ADD-ON OLD NEW ADD-ON OLD NEW
>                        Change the passphrase for ADD-ON from OLD to NEW

When it really should look like this:

>  --change-passphrase ADD-ON OLD NEW
>                        Change the passphrase for ADD-ON from OLD to NEW
2014-06-12 00:27:20 -04:00
Ignacio R. Morelle
9b065fd9a0 gui2/tchat_log: Add a button to copy the filtered page contents to clipboard
This copies the current contents of the dialog to clipboard. The button
currently lacks a tooltip because the tooltip has the potential to cause
map labels to glitch through the dialog when displayed (see commit
eab3e6fb646fda8cc6101a3e568c86c2b17b707f and bug #22176).
2014-06-11 20:32:42 -04:00
Ignacio R. Morelle
1ef59a37d1 THoT S4: Replace the wooden bridge with a stone one per the start dialogue
This commit also rewrites the map to drop the superfluous whitespace per
the changes to the editor in 1.11.x.
2014-06-10 23:12:24 -04:00
Groggy Dice
61c8c93698 wmllint: reorganize help into mode options and other options
The organization of Elvish Hunter's wmllint GUI tab suggested this change.
2014-06-10 06:10:16 -04:00
Groggy Dice
5b06aa9205 wmllint: fix substitution that was missing a slash 2014-06-10 06:10:11 -04:00
Groggy Dice
6c12233d3c add janebot to credits 2014-06-10 06:10:03 -04:00
Groggy Dice
8e7581f593 wmlscope: fix mistakes in help and options pointed out by Elvish Hunter
See EH's forum post:

http://forums.wesnoth.org/viewtopic.php?f=10&t=40397#p570438
2014-06-10 06:09:58 -04:00
Ignacio R. Morelle
eab3e6fb64 gui2/tgamestate_inspector: Add a button to copy contents to clipboard
This copies the contents of the main display area to clipboard. The
button currently lacks a tooltip because the tooltip causes map labels
to glitch through the dialog when displayed (noticeable in e.g. the test
scenario). I'll file a bug for this issue later using a (commented-out)
line introduced by this commit as a test case.
2014-06-09 18:13:48 -04:00