浏览代码

revert behavior of weapon throwing to original version

Pal Lockheart 7 年之前
父节点
当前提交
889b0f7cff
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      script.c

+ 1 - 2
script.c

@@ -1936,8 +1936,7 @@ PAL_InterpretInstruction(
       // Throw weapon to enemy
       //
       w = pScript->rgwOperand[1] * 5;
-      w += gpGlobals->g.PlayerRoles.rgwAttackStrength[gpGlobals->rgParty[g_Battle.wMovingPlayerIndex].wPlayerRole];
-      w += RandomLong(0, 4);
+      w += gpGlobals->g.PlayerRoles.rgwAttackStrength[gpGlobals->rgParty[g_Battle.wMovingPlayerIndex].wPlayerRole] * RandomFloat(0, 4);
       PAL_BattleSimulateMagic((SHORT)wEventObjectID, pScript->rgwOperand[0], w);
       break;