[Scummvm-cvs-logs] SF.net SVN: scummvm:[41147] scummvm/trunk/engines/kyra
athrxx at users.sourceforge.net
athrxx at users.sourceforge.net
Wed Jun 3 21:11:11 CEST 2009
Revision: 41147
http://scummvm.svn.sourceforge.net/scummvm/?rev=41147&view=rev
Author: athrxx
Date: 2009-06-03 19:11:11 +0000 (Wed, 03 Jun 2009)
Log Message:
-----------
LOL: implemented opcode required for catwalk caves
Modified Paths:
--------------
scummvm/trunk/engines/kyra/lol.h
scummvm/trunk/engines/kyra/script_lol.cpp
Modified: scummvm/trunk/engines/kyra/lol.h
===================================================================
--- scummvm/trunk/engines/kyra/lol.h 2009-06-03 18:43:22 UTC (rev 41146)
+++ scummvm/trunk/engines/kyra/lol.h 2009-06-03 19:11:11 UTC (rev 41147)
@@ -779,6 +779,7 @@
int olol_placeInventoryItemInHand(EMCState *script);
int olol_castSpell(EMCState *script);
int olol_pitDrop(EMCState *script);
+ int olol_increaseSkill(EMCState *script);
int olol_paletteFlash(EMCState *script);
int olol_disableControls(EMCState *script);
int olol_enableControls(EMCState *script);
Modified: scummvm/trunk/engines/kyra/script_lol.cpp
===================================================================
--- scummvm/trunk/engines/kyra/script_lol.cpp 2009-06-03 18:43:22 UTC (rev 41146)
+++ scummvm/trunk/engines/kyra/script_lol.cpp 2009-06-03 19:11:11 UTC (rev 41147)
@@ -2035,6 +2035,15 @@
return 1;
}
+int LoLEngine::olol_increaseSkill(EMCState *script) {
+ debugC(3, kDebugLevelScriptFuncs, "LoLEngine::olol_increaseSkill(%p) (%d, %d)", (const void *)script, stackPos(0), stackPos(1));
+ LoLCharacter *c = &_characters[stackPos(0)];
+ int s = stackPos(1);
+ int l = c->skillLevels[s];
+ increaseExperience(stackPos(0), s, _expRequirements[l] - c->experiencePts[s]);
+ return c->skillLevels[s] - l;
+}
+
int LoLEngine::olol_paletteFlash(EMCState *script) {
debugC(3, kDebugLevelScriptFuncs, "LoLEngine::olol_paletteFlash(%p) (%d)", (const void *)script, stackPos(0));
uint8 *s = _screen->getPalette(1);
@@ -2742,7 +2751,7 @@
Opcode(olol_placeInventoryItemInHand);
Opcode(olol_castSpell);
Opcode(olol_pitDrop);
- OpcodeUnImpl();
+ Opcode(olol_increaseSkill);
// 0xB0
Opcode(olol_paletteFlash);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list