mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-17 14:04:05 +09:00
player now created with proper born date
Former-commit-id: c77996cb7074d7c32421bb1f5a37194de0f16946 Former-commit-id: a9613ef941030ffe2b441bb19538573144b00608
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user