Difference between revisions of "Category:Workshop"
Jump to navigation
Jump to search
→Attracting NPCs
imported>Gawdl3y |
imported>Gawdl3y |
||
Line 74: | Line 74: | ||
int iMaxSurplusNPCs = 5 const ; max number of unassigned NPCs - if you have this many or more, no new NPCs will arrive | int iMaxSurplusNPCs = 5 const ; max number of unassigned NPCs - if you have this many or more, no new NPCs will arrive | ||
float attractNPCDailyChance = 0.1 const ; roll <= to this to attract an NPC each day, modified by happiness | float attractNPCDailyChance = 0.1 const ; roll <= to this to attract an NPC each day, modified by happiness | ||
int iMaxBonusAttractChancePopulation = 5 const | int iMaxBonusAttractChancePopulation = 5 const ; there's a bonus attract chance until the total population reaches this value | ||
int iBaseMaxNPCs = 10 const ; base total NPCs that can be at a player's town - this is used in GetMaxWorkshopNPCs formula | int iBaseMaxNPCs = 10 const ; base total NPCs that can be at a player's town - this is used in GetMaxWorkshopNPCs formula | ||
float attractNPCHappinessMult = 0.5 const ; multiplier on happiness to attraction chance | float attractNPCHappinessMult = 0.5 const ; multiplier on happiness to attraction chance |