mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-13 03:54:06 +09:00
first working staircasing but barely
This commit is contained in:
@@ -339,8 +339,8 @@ open class TerrarumIngame(batch: SpriteBatch) : IngameInstance(batch) {
|
||||
/** Load rest of the game with GL context */
|
||||
fun postInit() {
|
||||
//setTheRealGamerFirstTime(PlayerBuilderSigrid())
|
||||
setTheRealGamerFirstTime(PlayerBuilderTestSubject1())
|
||||
//setTheRealGamerFirstTime(PlayerBuilderWerebeastTest())
|
||||
// setTheRealGamerFirstTime(PlayerBuilderTestSubject1())
|
||||
setTheRealGamerFirstTime(PlayerBuilderWerebeastTest())
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -25,6 +25,8 @@ object InjectCreatureRaw {
|
||||
operator fun invoke(actorValueRef: ActorValue, module: String, jsonFileName: String) {
|
||||
val jsonObj = JsonFetcher(ModMgr.getPath(module, "creatures/$jsonFileName"))
|
||||
|
||||
// TODO make it work for every possible keys (maybe except ones starts with '_')
|
||||
|
||||
val elementsInt = arrayOf(AVKey.BASEHEIGHT, AVKey.TOOLSIZE, AVKey.ENCUMBRANCE)
|
||||
val elementsString = arrayOf(AVKey.RACENAME, AVKey.RACENAMEPLURAL)
|
||||
val elementsDouble = arrayOf(AVKey.BASEMASS, AVKey.ACCEL)
|
||||
|
||||
@@ -16,23 +16,8 @@ object PlayerBuilderWerebeastTest {
|
||||
ModMgr.getPath("basegame", "sprites/taimu_glow.properties"),
|
||||
-589141658L // random value thrown
|
||||
)
|
||||
//InjectCreatureRaw(p.actorValue, "basegame", "CreatureHuman.json")
|
||||
InjectCreatureRaw(p.actorValue, "basegame", "CreatureWerebeastBase.json")
|
||||
|
||||
p.actorValue[AVKey.SCALE] = 1.0
|
||||
p.actorValue[AVKey.SPEED] = 6.0
|
||||
p.actorValue[AVKey.SPEEDBUFF] = 1.0
|
||||
p.actorValue[AVKey.ACCEL] = ActorHumanoid.WALK_ACCEL_BASE
|
||||
p.actorValue[AVKey.ACCELBUFF] = 1.0
|
||||
p.actorValue[AVKey.JUMPPOWER] = 19.0
|
||||
p.actorValue[AVKey.BASEREACH] = 114 // 7 tiles + 2 px
|
||||
|
||||
p.actorValue[AVKey.BASEMASS] = 599.16
|
||||
p.actorValue[AVKey.SCALEBUFF] = 1.0 // Constant 1.0 for player, meant to be used by random mobs
|
||||
p.actorValue[AVKey.STRENGTH] = 5000
|
||||
p.actorValue[AVKey.ENCUMBRANCE] = 10000
|
||||
p.actorValue[AVKey.BASEHEIGHT] = 90
|
||||
|
||||
p.actorValue[AVKey.INTELLIGENT] = true
|
||||
|
||||
p.actorValue[AVKey.__PLAYER_QUICKSLOTSEL] = 0
|
||||
p.actorValue[AVKey.__ACTION_TIMER] = 0.0
|
||||
|
||||
Reference in New Issue
Block a user