Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Crop crop = new Crop(index, tileX, tileY);
- if (this.fertilizer == 465 || this.fertilizer == 466 || who.professions.Contains(5))
- {
- int num1 = 0;
- for (int index1 = 0; index1 < crop.phaseDays.Count - 1; ++index1)
- num1 += crop.phaseDays[index1];
- float num2 = this.fertilizer == 465 ? 0.1f : 0.25f;
- if (who.professions.Contains(5))
- num2 += 0.1f;
- int num3 = (int) Math.Ceiling((double) num1 * (double) num2);
- for (int index1 = 0; index1 < crop.phaseDays.Count; ++index1)
- {
- if (index1 > 0 || crop.phaseDays[index1] > 1)
- {
- List<int> list;
- int index2;
- (list = crop.phaseDays)[index2 = index1] = list[index2] - 1;
- --num3;
- }
- if (num3 <= 0)
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment