Modularise code concerning items
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
module Dodge.Item.Draw
|
||||
where
|
||||
import Dodge.Data
|
||||
import Dodge.Base
|
||||
|
||||
import Picture
|
||||
|
||||
drawWeapon :: Picture -> Creature -> Int -> Drawing
|
||||
drawWeapon p cr posInInv
|
||||
| _crInvSel cr == posInInv = onLayer PtLayer drawnWep
|
||||
| otherwise = blank
|
||||
where drawnWep = uncurry translate (_crRad cr,0) p
|
||||
|
||||
Reference in New Issue
Block a user