Commit Graph

821 Commits

Author SHA1 Message Date
114c625bf6 Fix indentation 2015-01-12 21:19:08 -05:00
25ef2ed713 Initial reformation of item abilities
- Merge most of the spell usable abilities into a single "cast spell" ability which can take any spell as an additional parameter
- Merge the affect status usable abilities into a single "affect status" ability which can take any status as an additional parameter
- Merge acidic and poisoned weapon into a single "status weapon" ability which can take any status as an additional parameter (though the handling for other statuses isn't yet implemented)
- Fix mass charm spell getting worse as you intelligence bonus increases
- Mass charm item spell is now easier to resist (an unintended side-effect)
- PC versions of Wrack and Unholy Ravaging implemented (for use as item spells)
2015-01-12 21:18:45 -05:00
3a285f47da Eliminate data size members from the scenario record
- Also move town_hidden array to the town record flags
2015-01-12 14:05:46 -05:00
ac7a1c1d88 Several little tweaks.
- Unify PC start adjustments into the cPlayer class; add start items for vahnatai race
- Allow healing missiles to heal PCs
- Fix display of spell names in the spellcasting dialog
- Expand list of statuses that affect_pc allows to be negative
2015-01-12 01:10:12 -05:00
908652d168 Housekeeping
- Rename cItemRec -> cItem and cItemRec::type -> cItem::weap_type
- Clear out a lot of commented code
- Remove the flag_x members in the scenario that used to store the scenario's password hash (or something like that)
2015-01-12 01:01:24 -05:00
43e4bcc048 Fix several more warnings
- As a side-effect, weapons with key skills other than the conventional three (edged, bashing, pole) are now fully supported (though the scenario editor UI doesn't yet support them)
2015-01-11 16:47:32 -05:00
148fa56a14 Fix Mac build 2015-01-11 16:18:27 -05:00
ac555ee931 Fix an instance of not drawing from the party sheet when it should 2015-01-11 16:08:03 -05:00
cc80539808 Fix line endings in imported Ticpp 2015-01-11 15:25:34 -05:00
f5db91547c Fix Windows build 2015-01-11 15:18:35 -05:00
ca85ec2060 Update included ticpp library to latest trunk code 2015-01-11 13:50:34 -05:00
1a069b4d71 Fix Mac build by eliminating more sprintf calls 2015-01-11 13:49:11 -05:00
bd531f9ac4 Nuke a lot of MSVC compiler warnings 2015-01-10 21:30:16 -05:00
bd0dc55995 Fix scenario editor build 2015-01-10 20:12:49 -05:00
6b107f8273 Write the code to save special nodes, as well as a skeletal outline of the new scenario format output code 2015-01-10 20:08:35 -05:00
6cae5d8bbd Add rudimentary error messages to the special nodes parser
- It tells you the line number, but not the nature of the error
- Unfortunately it can't currently cope with files that don't end in a newline
2015-01-10 19:12:33 -05:00
2e0c994b9b Switch the special node parser over to the older, better-documented version of Boost.Spirit 2015-01-10 02:38:12 -05:00
9a19db553f Fix the specials code parser not compiling in Visual Studio 2015-01-10 00:36:29 -05:00
1a7ff2c631 Fix Windows build 2015-01-10 00:29:25 -05:00
9f57f35428 Change .h -> .hpp in tools/ directory 2015-01-09 22:32:47 -05:00
1fc317d5af Update style guide 2015-01-09 18:11:40 -05:00
8a692b16d4 Create a script to build a Windows installer 2015-01-09 18:06:04 -05:00
4af3b8ee8f Add license file 2015-01-09 15:36:00 -05:00
3b3fec3843 Merge branch 'master' from Windows 2015-01-09 14:23:30 -05:00
057f271fe7 Redirect VS release build log to a file in %APPDATA% rather than in the program directory
- Will be important once there's an installer, since apps may not have permission to modify the program directory
2015-01-09 14:22:40 -05:00
49e508042c Update VS copy files stage to include DLLs 2015-01-09 13:45:40 -05:00
6b62f9b8f5 Remove unused logging stream 2015-01-09 01:00:16 -05:00
a409a928b6 Exclude VS debugger streambuf from release build 2015-01-09 00:32:46 -05:00
c96dba2678 Redirect console output to Visual Studio debugger panel
- Or to logfile for the release build
2015-01-08 22:57:15 -05:00
b5ce8e1169 Fix buffer falsely considering messages to be duplicates when they have a common stem 2015-01-08 22:33:16 -05:00
3ef98712d5 Purge all uses of printf, fprintf, perror and most uses of sprintf
Also:
- Print "Target Spell" before the explanatory prompts, instead of after (when fancy targeting)
- Fix sell costs being drawn on top of the button
- String-insensitive comparing for dialogue keys
2015-01-08 22:26:41 -05:00
8350a22ecb Allow taking items from a scenario even if they summon monsters or have custom graphics. Breaks older saved games.
(Older saved games might still work if not in a scenario.)
- Remove items that call a special node when entering a new scenario
- Remove stone block if a monster is placed on it
- Monsters captured by Capture Soul now persist across scenarios
- Fix barrels/crates not being restored when re-entering the town
- Fix issue when saving monster status effects
- Fix version number stored in saved game file; also, it's now stored in hexadecimal
- Fix issue with saving which would have caused all but the first timer to be ignored when loading the saved game
- Fix timers being written to out-of-bounds memory when loading a saved game
- Fix use of std::skipws where std::ws was intended
- Fix issue with the fields array being shifted right by one tile on loading; also, fields array is now saved as hexadecimal
- Fields and terrain array use the town's dimension instead of dimension hard-coded (in the case of fields) or stored in the file
- Fix PC editor remove from scenario option not working properly
- Reconstruct the universe when loading a saved game to ensure there isn't leakage from the previous universe
- Fix excess padding in output tarballs when the filesize is a multiple of 512
- Add hasFile function to tarball class
2015-01-08 17:46:54 -05:00
095ab3be49 Fix preset creatures not showing up on Windows 2015-01-07 18:30:30 -05:00
38f398caa5 Several little fixes
- Save As not working when not in a scenario
- Recuperation trait not selectable
- (Mac) Reverse domain applied as file extension
- (Windows) File extension not auto-appended
- (Windows) Dialogs sometimes fell behind main window after exiting sub-dialog
2015-01-07 17:20:49 -05:00
3b1d083575 Move pictype enum to seperate file from pict control 2015-01-07 17:10:43 -05:00
2604be619a Fix up Windows game/PCed menus
- Journal added
- Move Reunite and Own Vehicles to end to match Mac ordering
- Fix seeing instant help for creating a PC when you already have 6 PCs
- Fix listing wrong spells in spell menus
- Fix indentation
- Disable PC editor edit menus when file not loaded
2015-01-05 19:10:34 -05:00
f25a6e58f3 Reform game menu -> command mapping so that the non-platform-dependent code doesn't need to know where the menuitem is
- Also fix some issues with the notes dialogs
- Journal is now available; has a different icon now
2015-01-05 18:39:54 -05:00
04b9aec921 Reform PC editor menu -> command mapping so that the non-platform-dependent code doesn't need to know where the menuitem is
- Also disable edit menus when no party loaded and fix item menus not being populated if the party is in a scenario
2015-01-05 17:17:34 -05:00
dfe54fd0a2 Fix Windows scenario editor menus 2015-01-05 13:49:51 -05:00
ec617322d0 Merge branch 'master' from Windows 2015-01-05 13:33:52 -05:00
584baa3f19 Reform scenario editor menu -> command mapping so that the non-platform-dependent code doesn't need to know where the menuitem is 2015-01-05 13:33:38 -05:00
60730702a5 Split PC editor items menus into columns
- And increase columns for scenario editor items menus
2015-01-05 13:25:18 -05:00
a58f643926 Fix crashes when writing saved game 2015-01-05 13:23:20 -05:00
75e340f945 Fix hidden towns being considered for non-town terrain types
- Caused a crash on Windows and mysterious black tiles on Mac
2015-01-05 02:17:22 -05:00
c5da4a6e05 Fix the Windows Release build 2015-01-05 00:49:35 -05:00
cc20eeaa92 Fix minor issue with editing special node text 2015-01-04 22:56:55 -05:00
bef76595b9 Merge branch 'master' from Windows 2015-01-04 22:56:16 -05:00
69f9018190 Fix pointer values overwriting the wrong fields in special nodes 2015-01-04 22:54:39 -05:00
ccd71b4597 Fix Mac PC editor build 2015-01-04 22:18:45 -05:00
f44f713cac Fix cursors not showing up on Windows.
(At least mostly; there might still be a few glitches.)
2015-01-04 22:03:24 -05:00