27824 Commits

Author SHA1 Message Date
Iris Morelle
fd37a05ffe ui: Claim back unused space from the 800 px minimap theme
This allows the minimap widget to be 2 pixels wider, and frees up 7
pixels of vertical space for the rest of the sidebar
2021-03-24 04:23:25 -03:00
Iris Morelle
5f462c6064 ui: Remove orphaned references to the zoom slider 2021-03-24 04:05:18 -03:00
Iris Morelle
73e5bff25c ui: Remove unused zoom slider portion of the minimap panel
This allows us to claim back 10px for the rest of the sidebar.
2021-03-24 04:05:18 -03:00
Celtic Minstrel
7c95e9d1a4 Lurker FAI: map(x, self) is exactly the same as just self
This caused the crash fixed in the previous commit. Although the crash is fixed, it's still stupid and we shouldn't do it.
2021-03-23 00:34:44 -04:00
Steve Cotton
b24c88a7b1 EI S07b: Wake the sea creatures with noise instead of magic
This comes from a discussion about which archaic-sounding pronoun should be
used instead of "you" in "Creatures from the deep, I summon you to destroy this
foe". The conclusion with that was that "thee" or "ye" would sound better, but
"you" is the correct archaic pronoun.

The .ogg file is copied from Northern Rebirth.
2021-03-23 01:37:48 +01:00
mattsc
64b672f9ef Add Swarm Micro AI [filter] tag to schema 2021-03-22 10:54:59 -07:00
mattsc
8d03d3ef08 Swarm Micro AI: add optional parameter [filter] 2021-03-22 09:09:30 -07:00
mattsc
4086758214 Remove Formula AI lurkers from Lurkers test scenario
This is part of removing Formula AI uses from mainline.
2021-03-21 17:15:43 -07:00
mattsc
92d22f18e6 Remove Home Guardian Formula AI from Guardians test scenario
This is part of removing Formula AI uses from mainline.
2021-03-21 17:03:50 -07:00
mattsc
f462416111 Remove MP dev (debug) AIs
This is part of removing Formula AI uses from mainline.  These are just small experimental additions to the default AI that have been superseded by more recent additions to the AI.
2021-03-21 16:51:11 -07:00
mattsc
4562bbae56 Add new Micro AI parameters to schema and emacs_mode 2021-03-21 16:23:59 -07:00
mattsc
af86d00e91 LoW The Chief Must Die: replace Formula AI with Micro AI
Formula AI is not maintained any more and will be removed in the future.  This replaces the Patrol FAI use in this scenario with a Patrol Micro AI.

Note that the FAI guard_radius=3 is equivalent to the MAI attack_range=4 as the former is the distance to the hex from which the patrol attacks, while the latter is the distance to the enemy.
2021-03-21 15:01:09 -07:00
mattsc
4fe45bf22a Patrol Micro AI: add two optional parameters
attack_range: the patrol interrupts its route to attack enemies within this distance, not just enemies that it happens to end up next to

attack_invisible_enemies: include invisible enemies when considering whether there are enemies within attack_range

The default behavior is unchanged.
2021-03-21 14:56:37 -07:00
Iris Morelle
eee53c32e9 pot and documentation update 2021-03-20 22:05:48 -03:00
josteph
13c4c8f305 EI S11: Annotate bonus objectives as such.
Part of #4145
2021-03-20 17:19:21 +01:00
josteph
bfedcdccb9 EI S10: Switch shroud to fog
The scenario was otherwise generally unwinnable on the first attempt. Although
the extra turns in added in ab900b0093503809d91fc9c48ead19e388b63fe7 help with
that, it's still worth changing to fog instead of shroud.

Part of #4145
2021-03-20 17:19:21 +01:00
josteph
22e34d7dde EI S10: Make recall undoable
This event shows a warning about recalled units having low / no movement
through mountainous terrain.

Part of #4145
2021-03-20 17:19:21 +01:00
josteph
4c1d6295b8 EI S7a: Improve how side 2 makes its entrance
Don't use [hide_unit], that's not what it's for.

Part of #4145.
2021-03-20 17:19:21 +01:00
nemaara
6245cfe580 EI S8: don't tax the player 2021-03-20 11:50:52 -04:00
Iris Morelle
a455aa9ce9 tutorial: Disable end credits
Closes #5543.
2021-03-20 02:42:33 -03:00
Iris Morelle
220c3f5752 gui2: Restyle comboboxes to look like buttons rather than textboxes 2021-03-20 01:55:45 -03:00
Iris Morelle
3cbe0a5ef7 gui2: Make GUI_LINE and GUI_POINT public macros
This detaches them from the GUI2 button definition.
2021-03-20 01:54:45 -03:00
Iris Morelle
2fac56c21f gui2/drop_down_menu: Make display of entry details more orderly
The primary target of this change is hotkey labels in game menus. This
aligns them all to the right of the menu and increases the space between
them and the menu item label proper to attain a cleaner appearance.
2021-03-20 01:33:43 -03:00
Celtic Minstrel
96fba6b833
Fix wesnoth.set_terrain without a mode 2021-03-19 21:02:56 -04:00
Iris Morelle
e7d1a5dc8a ui: Handle the battery/countdown report switcheroo differently
This fixes the countdown report (a.k.a. clock) using the wrong font size
at small resolutions, as well as taking over the battery report's box
without resizing it and thus running out of horizontal room most of the
time.

This also removes two broken references to "timeout-panel" and
"report_timeout", neither of which being names that actually exist in
this version of the theme.
2021-03-18 20:27:57 -03:00
Iris Morelle
2c540ccfce ui: Anchor the Observers icon to the sidebar, going right to left
Supersedes 9e0593d7143fa76c51239b5cb874284d1800e1fc, which attempted to
fix the issue with the icon displaying at unexpected places by anchoring
it to the battery display from the left instead of staying true to the
intended design.

CC #5575
2021-03-18 20:27:57 -03:00
Steve Cotton
544fffa11d EI S2: Lift shroud (but not fog) around the amulet
Gives the player a hint to explore around the amulet, despite the objectives
saying "Get moving quickly", which discourages that in the first playthrough.

This might also prevent players interpreting the revealed path directly through
the trolls as the suggested path through the level. By putting one of the dots
in an obvious dead-end, it's less of a surprise that the path shown by the
other dots leads to getting trapped between trolls and undead.

Part of #4145
2021-03-18 07:34:31 +01:00
josteph
238fdd2cfc EI S1: Update objectives to reflect when an early finish bonus is given. 2021-03-18 07:34:31 +01:00
josteph
95993aff67 EI S1, S2: Fix typos 2021-03-18 07:34:31 +01:00
Iris Morelle
0d3517e7aa ui: Fix bad x position for the theme UI battery status on low resolutions 2021-03-17 23:40:29 -03:00
Iris Morelle
7713437085 ui: Reduce font size for the ToD counter
*Should* generally fix counters like 14/15 getting ellipsized. There was
no real reason for it to be so large to begin with.
2021-03-17 20:20:56 -03:00
Iris Morelle
ffbc7ebc57 ui: Rearrange and resize the unit vision and XP labels slightly
This makes it so the unit vision label uses a smaller font on smaller
resolutions. It also makes it so it doesn't take space away from the XP
report for all resolutions. Meanwhile, the XP report has more space.

CC #5575
2021-03-17 19:43:47 -03:00
Iris Morelle
579610498a ui: Reduce unit HP/XP/MP/Def font sizes and line heights on 1024x600
Fixes the unit name overlapping the MP and defense reports.

CC #5575
2021-03-17 04:34:24 -03:00
Iris Morelle
97ece89aeb ui: Fix font and box sizes for unit defense labels on the sidebar
This fixes the "def" label (previously unknown to everybody before the
sdl_ttf_compat API transition!) having the wrong box size and alignment.
This also extends to its accompanying unit defense report, which had the
wrong font size entirely.
2021-03-17 04:21:43 -03:00
nemaara
609ebf4551
Liberty S8: prose fix 2021-03-16 21:06:10 -04:00
nemaara
39c52c2cb0 Liberty: yet another dialogue revision 2021-03-16 02:58:11 -04:00
newfrenchy83
e3b737cfd6
Add [teaching_anim] for abilities used like weapon specials given by an adjacent unit
When a unit gives adjacent units abilities used like weapon specials, and is not already showing an animation from giving a resistance or leadership effect, a [teaching_anim] can be played instead.
2021-03-15 10:30:30 -05:00
Iris Morelle
c611128112 ui: Rearrange Menu menu items more logically
This changes the position of Statistics, Status Table and Unit List
according to their respective likelihood of being used and relabels the
Back to submenu to Load Turn and brings it right under Load Game.
2021-03-14 20:16:13 -03:00
nemaara
9b4ffff694 Liberty: reduce difficulty 2021-03-13 23:05:30 -05:00
nemaara
e2a4251c2a TSG: reduce difficulty 2021-03-13 22:54:53 -05:00
nemaara
afc81cdee8 Fix campaign difficult ratings 2021-03-13 22:46:50 -05:00
nemaara
a9a5b3c3f4 UtBS S1: prose fix (fix #4869) 2021-03-13 22:38:36 -05:00
nemaara
497d556d05 UtBS S1: change gold carryover to match income 2021-03-13 22:30:53 -05:00
nemaara
887ea60817 UtBS: rebalance patch 2021-03-13 22:23:25 -05:00
mattsc
a60736b6c7 Messenger Micro AI: add [avoid] tag functionality 2021-03-13 17:20:09 -08:00
mattsc
0c4d8ebbe6 ai_helper.lua: add 'avoid_map' functionality to move_unit_out_of_way()
Also add comment about passing it through from robust_move_and_attack().
2021-03-13 17:16:50 -08:00
mattsc
a50415b5e1 ai_helper.get_closest_location: add avoid_map parameter 2021-03-13 17:16:50 -08:00
Iris Morelle
1f97941a33 gui2/lua_interpreter: Use monospaced textbox for code input 2021-03-13 19:24:35 -03:00
Iris Morelle
3ddbeb0b1e gui2/text_box: Add a monospace font variation
This requires communicating the font family to the internal renderer, so
it's not just a WML change.
2021-03-13 19:23:42 -03:00
nemaara
76886c4381 Liberty: dialogue revision again 2021-03-13 02:26:06 -05:00