bulldozer4242

Recruit
Mar 27, 2021
1
0
How do you make a sponsor that doesn't have a penalty to working in a different dome than they live in? I assume it uses the modify label "NonHomeDomePerformancePenalty" but I can't get it to work. Is this the right property, and if so what label and amount should I be using?
 

ChoGGi_2

Lt. General
11 Badges
Apr 3, 2018
1.350
96
  • Cities: Skylines
  • Surviving Mars
  • Age of Wonders III
  • Surviving Mars: Digital Deluxe Edition
  • Cities: Skylines - Parklife
  • Surviving Mars: First Colony Edition
  • Prison Architect
  • Surviving Mars: First Colony Edition
  • Crusader Kings II
  • Magicka
  • Ship Simulator Extremes
(I don't use the mod editor)

Looking in the presets for sponsors, it looks like this
Code:
  PlaceObj("Effect_ModifyLabel", {
    Label = "Consts",
    Percent = -100,
    Prop = "NonHomeDomePerformancePenalty"
  })

Hopefully that helps, if you can't get it to work then in a code menuitem thingy paste this code (you'll need to change CustomSponsorID to the sponsor you want to use)
Code:
local function StartupCode()
	if GetMissionSponsor().id == "CustomSponsorID" then
		g_Consts.NonHomeDomePerformancePenalty = 0
	end
end

OnMsg.CityStart = StartupCode
OnMsg.LoadGame = StartupCode