Difference between revisions of "Category:Workshop"
→Attracting NPCs
imported>Gawdl3y |
imported>Gawdl3y |
||
Line 72: | Line 72: | ||
Current constants: | Current constants: | ||
int iMaxSurplusNPCs = 5 const | int iMaxSurplusNPCs = 5 const ; for now, max number of unassigned NPCs - if you have this many or more, no new NPCs will arrive. TODO - levels of workshop? Radio upgrades? | ||
float attractNPCDailyChance = 0.1 const ; for now, roll <= to this to attract an NPC each day, modified by happiness | float attractNPCDailyChance = 0.1 const ; for now, roll <= to this to attract an NPC each day, modified by happiness | ||
int iMaxBonusAttractChancePopulation = 5 const ; for now, there's a bonus attract chance until the total population reaches this value | int iMaxBonusAttractChancePopulation = 5 const ; for now, there's a bonus attract chance until the total population reaches this value | ||
int iBaseMaxNPCs = | int iBaseMaxNPCs = 10 const ; base total NPCs taht 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 | ||