mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 19:14:05 +09:00
why it's not super-fied?
This commit is contained in:
@@ -9,7 +9,7 @@ import org.newdawn.slick.Graphics
|
|||||||
/**
|
/**
|
||||||
* Created by minjaesong on 16-03-15.
|
* Created by minjaesong on 16-03-15.
|
||||||
*/
|
*/
|
||||||
class DroppedItem(private val item: GameItem) : ActorWithPhysics(Actor.RenderOrder.MIDTOP) {
|
open class DroppedItem(private val item: GameItem) : ActorWithPhysics(Actor.RenderOrder.MIDTOP) {
|
||||||
|
|
||||||
init {
|
init {
|
||||||
if (item.dynamicID >= ItemCodex.ACTORID_MIN)
|
if (item.dynamicID >= ItemCodex.ACTORID_MIN)
|
||||||
@@ -26,10 +26,13 @@ class DroppedItem(private val item: GameItem) : ActorWithPhysics(Actor.RenderOrd
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun update(gc: GameContainer, delta: Int) {
|
override fun update(gc: GameContainer, delta: Int) {
|
||||||
item.effectWhenEquipped(gc, delta)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun drawBody(g: Graphics) {
|
override fun drawBody(g: Graphics) {
|
||||||
|
super.drawBody(g)
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun drawGlow(g: Graphics) {
|
||||||
|
super.drawGlow(g)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user