Commit Graph

68 Commits

Author SHA1 Message Date
athrxx
1387693168 KYRA: fix bug No. X. from http://forums.scummvm.org/viewtopic.php?t=11487
(monsters not getting hit by fireball trap)
2012-05-06 12:42:10 +02:00
Christoph Mallon
75efdd2d84 JANITORIAL: Replace (x ? false : true) by !(x). 2012-03-13 15:43:36 +01:00
Johannes Schickel
a2221a8b9e KYRA: Slight formatting fixes. 2011-12-31 05:11:33 +01:00
athrxx
6786c41f4f KYRA: (LOL) - refactor item/monster structs 2011-12-28 00:01:32 +01:00
athrxx
0aa3238523 KYRA: (EOB/LOL) - rename some vars
(all cases of Eob to EoB, all cases of Lol to LoL, all cases of LolEobCommon to RpgCommon)
2011-12-26 16:18:16 +01:00
athrxx
540d081a6f KYRA: (EOB) - initial code base commit 2011-12-26 16:18:10 +01:00
Christoph Mallon
23a0f5318c JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
strangerke
69b1485a22 GIT: Clean up: Suppress SVN tags, now useless 2011-05-12 01:16:22 +02:00
Florian Kagerer
ec680ef8aa LOL: fixed bug #3099321
(Crash in Yvel tavern basement)

svn-id: r53973
2010-10-31 00:20:30 +00:00
Florian Kagerer
09f77eb464 LOL: - fix invalid mem access
- also extend LordHoto's recent item code changes to LOL

svn-id: r53740
2010-10-23 16:01:40 +00:00
Johannes Schickel
0fe2ba6a0d Some more enforcement of our formatting conventions in KYRA too.
svn-id: r49069
2010-05-17 23:29:44 +00:00
Torbjörn Andersson
65585f6433 Silenced some harmless cppcheck warnings about unreachable code after a return.
In this case, it was always a break after a return in a switch case. There are
similar cases which cppcheck didn't detect, and a couple of cases where we have
a break after a continue in a switch case (where the continue refers to an
outer loop), but I didn't touch those. Not yet, at least.

svn-id: r48218
2010-03-10 06:39:23 +00:00
Florian Kagerer
d4a0375f7e LOL: fixed handling of invalid monster attack sfx in the Urbish mines (should fix bug no #2945950)
svn-id: r47967
2010-02-07 16:12:31 +00:00
Johannes Schickel
595a2e16f1 Fix use of undefined behavior. (Thanks to syke for reporting)
svn-id: r47685
2010-01-29 22:43:23 +00:00
Johannes Schickel
aed02365ec Strip trailing spaces/tabs.
svn-id: r47541
2010-01-25 01:39:44 +00:00
Florian Kagerer
c0fc64ecbf LOL: - fixed transparency tables in PC-98 16 color version
- renamed some variables

svn-id: r45847
2009-11-11 23:05:19 +00:00
Florian Kagerer
8b993ce863 LOL: this should fix a valgrind warning
svn-id: r45221
2009-10-18 12:47:54 +00:00
Florian Kagerer
7c065c84cb LOL/PC-98: implemented drawing code for teleporters
svn-id: r44883
2009-10-10 18:45:33 +00:00
Florian Kagerer
6f1c43a731 LOL/PC-98: fixed last commit
svn-id: r44849
2009-10-09 21:42:37 +00:00
Florian Kagerer
0d7d2b8371 LOL/PC-98: fixed monster drawing bug (some wrong pixels)
svn-id: r44847
2009-10-09 21:35:48 +00:00
Max Horn
f242266f6d Change a couple places from 'end of namespace' to 'End of namespace', for consistency
svn-id: r44634
2009-10-04 21:26:33 +00:00
Florian Kagerer
4d9258d3e5 LOL/PC-98: start fixing color issues (still not working correctly though)
svn-id: r44223
2009-09-20 23:25:39 +00:00
Florian Kagerer
525c084456 LOL/Floppy: fixed size of menu boxes
svn-id: r44061
2009-09-13 14:44:37 +00:00
Florian Kagerer
ad5d918ad5 LOL: update kyra.dat with floppy version data (floppy version still doesn't work, though)
svn-id: r43904
2009-09-02 06:24:01 +00:00
Johannes Schickel
418fb485c9 Fix format arugments in LoL code. (triggered via -Wformat-security)
svn-id: r43444
2009-08-16 17:35:59 +00:00
Florian Kagerer
7f667c5289 LOL: some minor fixes
svn-id: r43269
2009-08-11 14:34:33 +00:00
Florian Kagerer
a212a9da7e LOL: rename new function in last commit according to LordHoto's suggestion
svn-id: r42270
2009-07-08 20:32:34 +00:00
Florian Kagerer
2950bc28c4 LOL: fix long standing bugs in the battle system (hit chance, damage, etc) by adapting original style random number generator
svn-id: r42269
2009-07-08 20:19:23 +00:00
Johannes Schickel
6e299e4777 Strip trailing whitespaces and tabs.
svn-id: r41848
2009-06-25 01:30:12 +00:00
Johannes Schickel
2e27c7b492 Replaced "getRandomNumberSpecial" be RandomSource usage. (This is needed for proper event recording, also the probability for generated numbers is actually nearly the same)
svn-id: r41646
2009-06-18 21:47:10 +00:00
Florian Kagerer
09fe7b3152 LOL: implemented some missing monster animation code
svn-id: r41327
2009-06-07 10:34:01 +00:00
Johannes Schickel
a4292afcdc Formatting and whitespaces again.
svn-id: r41120
2009-06-02 00:10:13 +00:00
Florian Kagerer
8b59d275ab LOL: add workaround comment (at LordHoto's repeated insistence)
svn-id: r41105
2009-06-01 18:25:43 +00:00
Johannes Schickel
ede3dec88a Add support for the Lands of Lore scrolling credits.
svn-id: r41081
2009-05-31 19:31:04 +00:00
Florian Kagerer
cc8cc6f452 LOL: implemented magic viper attack (used by wraiths in white tower level 3)
svn-id: r41074
2009-05-31 15:42:26 +00:00
Florian Kagerer
c938667d4b LOL: - fix shape memory allocation/release issue
svn-id: r41055
2009-05-31 01:24:08 +00:00
Florian Kagerer
f2516e648e LOL: fix some valgrind warnings
svn-id: r41052
2009-05-31 00:25:05 +00:00
Johannes Schickel
c7ee0a7ec8 More formatting.
svn-id: r40994
2009-05-29 13:09:26 +00:00
Florian Kagerer
69d054660a LOL: - fix valgrind warning
- fix more input code issues
- add workround for another script bug (some invalid monster sound index in urbish mine level 2)

svn-id: r40974
2009-05-28 23:49:41 +00:00
Florian Kagerer
6bd5dea027 LOL: - implemented freeze spell
- fixed saveload code
- added some opcode for the swamp

svn-id: r40763
2009-05-21 16:46:40 +00:00
Johannes Schickel
e51481d69b Remove trailing tabs/whitespaces.
svn-id: r40760
2009-05-21 13:13:09 +00:00
Johannes Schickel
da0a07b441 Formatting.
svn-id: r40670
2009-05-17 23:51:42 +00:00
Florian Kagerer
bee8be58e3 LOL: implemented pit drop animation
svn-id: r40592
2009-05-15 06:29:08 +00:00
Florian Kagerer
670eb3badf LOL: - implemented rest party button
- made button processing code more accurate

svn-id: r40442
2009-05-10 23:08:32 +00:00
Florian Kagerer
dd84aaf648 LOL: - added some spell casting (spark, heal, swarm)
- fixed several bugs (not the one in the fighting system though)
- added several opcodes. there shouldn't be any real show stoppers in the draracle cave now.
- simplified wsa code (which required 4 lines of code for displaying a frame)
- added support for wsa animations that don't have a last frame (apparently kyra 2 and 3 don't have this type of wsa file)

svn-id: r40420
2009-05-10 13:40:28 +00:00
Florian Kagerer
6e566a9b1e LOL: added some drawing code and fixed some bugs
svn-id: r40167
2009-04-27 19:38:28 +00:00
Filippos Karapetis
9af7d48a04 Changed the attacker parameter from 0 to 0xFFFF in inflictDamage() (which was probably the original intended value) and added a FIXME
svn-id: r40149
2009-04-25 23:57:26 +00:00
Filippos Karapetis
97f3277f8f The "attacker" parameter is an unsigned integer, so we can't pass a negative number to it (hopefully this doesn't break anything)
svn-id: r40148
2009-04-25 23:42:47 +00:00
Florian Kagerer
ccb64ad81e LOL: - Started implementing the fighting system. The damage inflicted is wrong, however (at least the damage inflicted by the monsters). I'm sowewhat clueless about that bug atm.
- added support for monsters with distance attacks (like those orcs in front of roland's house)
- lots of small bug fixes
- Some startup support for the pc-98 16 color version. The intro will run, but the font drawing/coloring is still wrong.

svn-id: r40144
2009-04-25 13:15:05 +00:00
Florian Kagerer
38737e9c07 LOL: fix monsters' strange sliding to the left (like that thug at the beginning)
svn-id: r39863
2009-04-05 13:15:33 +00:00