|
发表于 2012-11-6 10:43:59
|
显示全部楼层
0回合开始的时候会产生一次营地,数目是地图允许的营地数量的1/3。其他的回合有1/2的机会在全地图范围内刷出一个营地。
DoCamp()中- // First turn of the game add 1/3 of the Target number of Camps
- if(kGame.getElapsedGameTurns() == 0)
- {
- iNumCampsToAdd *= /*33*/ GC.getBARBARIAN_CAMP_FIRST_TURN_PERCENT_OF_TARGET_TO_ADD();
- iNumCampsToAdd /= 100;
- }
- // Every other turn of the game there's a 1 in 2 chance of adding a new camp if we're still below the target
- else
- {
- if(kGame.getJonRandNum(/*2*/ GC.getBARBARIAN_CAMP_ODDS_OF_NEW_CAMP_SPAWNING(), "Random roll to see if Barb Camp spawns this turn") > 0)
- {
- iNumCampsToAdd = 1;
- }
- else
- {
- iNumCampsToAdd = 0;
- }
- }
复制代码原帖由 Olemi 于 2012-11-5 18:33 发表
什么?0回合的时候后就有营地了?!?- -
[ 本帖最后由 landice 于 2012-11-6 10:53 编辑 ] |
|