diff --git a/src/Player.mpsrc b/src/Player.mpsrc
index b41c8e3b7ff82cfcc4eda09aa5e8cbb6f7f2895b..0a97db74453571125d066248357684a7b392a46d 100644 (file)
--- a/src/Player.mpsrc
+++ b/src/Player.mpsrc
\r
implementation\r
\r
- uses func, phy, vars, Canvas, drop, items, jsr75i, inv;\r
+ uses func, phy, vars, Canvas, drop, jsr75i, inv, ItemsLogic;\r
\r
const\r
PLAYER_W=8;\r
DrawImage(playerBody[posi], x - camx, y - camy);\r
DrawImage(playerLegs[posi, animLegs], x - 2 - camx, y + 20 - camy);\r
\r
- if animHand = 0 then DrawSmallItem(Inv.GetItem(invslot), x - camx, y + 14 - camy);\r
- else if posi = POSI_RIGHT then DrawSmallItem(Inv.GetItem(invslot), x + 10 - camx, y + 5 - camy + animHand);\r
- else if posi = POSI_LEFT then DrawSmallItem(Inv.GetItem(invslot), x - 10 - camx, y + 5 - camy + animHand);\r
+ if animHand = 0 then ItemsLogic.DrawSmall(Inv.GetItem(invslot), x - camx, y + 14 - camy);\r
+ else if posi = POSI_RIGHT then ItemsLogic.DrawSmall(Inv.GetItem(invslot), x + 10 - camx, y + 5 - camy + animHand);\r
+ else if posi = POSI_LEFT then ItemsLogic.DrawSmall(Inv.GetItem(invslot), x - 10 - camx, y + 5 - camy + animHand);\r
\r
if (animHand = 0) or (posi = POSI_RIGHT) then DrawImage(playerHand[posi, animHand], x + 2 - camx, y + 8 - camy);\r
else DrawImage(playerHand[posi, animHand], x - 6 - camx, y + 8 - camy);\r