player now created with proper born date

Former-commit-id: c77996cb7074d7c32421bb1f5a37194de0f16946
Former-commit-id: a9613ef941030ffe2b441bb19538573144b00608
This commit is contained in:
Song Minjae
2016-10-15 12:19:50 +09:00
parent c1d72c29af
commit 41b4a929d8
2 changed files with 9 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
package net.torvald.terrarum.gameactors
import net.torvald.terrarum.Terrarum
import org.newdawn.slick.SlickException
import java.io.IOException
@@ -12,7 +13,7 @@ object PlayerBuilder {
@Throws(IOException::class, SlickException::class)
fun create(): Player {
val p: Player = Player()
val p: Player = Player(Terrarum.ingame.world.time.currentTimeAsGameDate)
CreatureRawInjector.inject(p.actorValue, "CreatureHuman.json")
// attach sprite