From: <lyn...@us...> - 2009-06-23 14:22:45
|
Revision: 6597 http://gemrb.svn.sourceforge.net/gemrb/?rev=6597&view=rev Author: lynxlupodian Date: 2009-06-23 13:45:09 +0000 (Tue, 23 Jun 2009) Log Message: ----------- filled the gaps in monkbon.2da added monk level based ac/ac vs missile bonus support Modified Paths: -------------- gemrb/trunk/gemrb/override/bg2/monkbon.2da gemrb/trunk/gemrb/plugins/Core/Actor.cpp Modified: gemrb/trunk/gemrb/override/bg2/monkbon.2da =================================================================== --- gemrb/trunk/gemrb/override/bg2/monkbon.2da 2009-06-23 12:13:43 UTC (rev 6596) +++ gemrb/trunk/gemrb/override/bg2/monkbon.2da 2009-06-23 13:45:09 UTC (rev 6597) @@ -1,6 +1,6 @@ 2DA V1.0 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 -APR_BONUS 0 0 1 0 0 2 0 0 3 0 0 4 0 0 5 0 0 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -AC_BONUS 1 0 2 0 3 0 4 0 5 0 6 0 7 0 8 0 9 0 10 0 11 0 0 12 0 0 13 0 0 14 0 0 0 0 15 0 0 0 0 16 -ACM_BONUS 0 0 1 0 0 2 0 0 3 0 0 4 0 0 5 0 0 6 0 0 7 0 0 8 0 0 9 0 0 10 0 0 11 0 0 12 0 0 13 0 +APR_BONUS 0 0 1 1 1 2 2 2 3 3 3 4 4 4 5 5 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 +AC_BONUS 1 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 11 12 12 12 13 13 13 14 14 14 14 14 15 15 15 15 15 16 +ACM_BONUS 0 0 1 1 1 2 2 2 3 3 3 4 4 4 5 5 5 6 6 6 7 7 7 8 8 8 9 9 9 10 10 10 11 11 11 12 12 12 13 13 \ No newline at end of file Modified: gemrb/trunk/gemrb/plugins/Core/Actor.cpp =================================================================== --- gemrb/trunk/gemrb/plugins/Core/Actor.cpp 2009-06-23 12:13:43 UTC (rev 6596) +++ gemrb/trunk/gemrb/plugins/Core/Actor.cpp 2009-06-23 13:45:09 UTC (rev 6597) @@ -4860,8 +4860,6 @@ } } -//set up stuff here, like attack number, turn undead level -//and similar derived stats that change with level void Actor::SetupFist() { int slot = core->QuerySlot( 0 ); @@ -5140,6 +5138,18 @@ printf("\n"); if (backstabdamagemultiplier>7) backstabdamagemultiplier=7; } + + // monk's level dictated ac and ac vs missiles bonus + // attacks per round bonus will be handled elsewhere, since it only applies to fist apr + if (isclass[ISMONK]&(1<<classid)) { + AutoTable tm("monkbon"); + if (tm) { + int level = GetMonkLevel(); + BaseStats[IE_ARMORCLASS] = DEFAULTAC - atoi(tm->QueryField(1, level-1)); + BaseStats[IE_ACMISSILEMOD] = - atoi(tm->QueryField(2, level-1)); + } + } + BaseStats[IE_TURNUNDEADLEVEL]=turnundeadlevel; BaseStats[IE_BACKSTABDAMAGEMULTIPLIER]=backstabdamagemultiplier; BaseStats[IE_LAYONHANDSAMOUNT]=GetPaladinLevel()*2; @@ -5171,6 +5181,8 @@ BaseStats[IE_LAYONHANDSAMOUNT]=(ieDword) layonhandsamount; } +//set up stuff here, like attack number, turn undead level +//and similar derived stats that change with level void Actor::CreateDerivedStats() { //we have to calculate multiclass for further code This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |