Jump to content

Recommended Posts

  • Developer
  • Scarecrow now shows up properly in the crafting menu.
  • Scaled Furnace Blueprint now drops properly from the Dragonfly.
  • Toadstool will now have a chance to drop Shroom Skins during the battle.
  • Mushlights are now powered by Light Bulbs, and Glowcaps are now powered by Light Bulbs and/or Colored Spores.
  • Fix crash sometimes when exiting the game.
  • Added ReleaseID.R02_ANR_WARTSANDALL for mod compatibility testing.

View full update

  • Like 12
Link to comment
https://forums.kleientertainment.com/forums/topic/70383-game-update-191322/
Share on other sites

I see now guano has "savedscale".

local function spawn_leif(target)
    --assert(GetBuild(target).leif ~= nil)
    local leif = SpawnPrefab(GetBuild(target).leif)
    local scale = target.leifscale
    leif.AnimState:SetMultColour(target.AnimState:GetMultColour())

    --we should serialize this?
    leif.components.locomotor.walkspeed = leif.components.locomotor.walkspeed*scale
    leif.components.combat.defaultdamage = leif.components.combat.defaultdamage*scale
    leif.components.combat.hitrange = leif.components.combat.hitrange*scale
    leif.components.combat.attackrange = leif.components.combat.attackrange*scale
    local maxhealth = leif.components.health.maxhealth*scale
    local currenthealth = leif.components.health.currenthealth*scale
    leif.components.health:SetMaxHealth(maxhealth)
    leif.components.health:SetCurrentHealth(currenthealth)

    leif.Transform:SetScale(scale,scale,scale)
    if target.chopper then leif.components.combat:SuggestTarget(target.chopper) end
    leif.sg:GoToState("spawn")
    target:Remove()

    leif.Transform:SetPosition(target.Transform:GetWorldPosition())
end

Treeguards could get it too, now.

 

Also

	wilson_autumn = "",
	wilson_formal = "",
	wilson_shadow = "",
	wilson_spring = "",
	wilson_survivor = "",

 

  • Like 8

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...