package Subs;

import Misc.Tools;

public class Person {

	public int foodConsumed = 1;
	
	private int age;
	private boolean pregnant = false;
	private int pregnancyStage = -1;
	public boolean gender = Tools.chance(0.5);
	
	public Person() {
		
	}
	
	public Person(int f) {
		foodConsumed = f;
	}
	
	public void step() {
		if (pregnant) {
			if (pregnancyStage < 2) {
				pregnancyStage++;
			}
			else if (pregnancyStage >= 2) {
				pregnancyStage = -1;
				pregnant = false;
			}
		}
	}
	
	public int getPregnancyStage() {
		return pregnancyStage;
	}
	
	public void makePregnant() {
		if (!gender && !pregnant) {
			pregnant = true;
			pregnancyStage = 0;
		}
	}
}

@@ -593,20 +593,23 @@
 %09public 
-void
+boolean
  makePre
@@ -693,22 +693,56 @@
 age = 0;%0D%0A%09%09
-%7D
+%09return true;%0D%0A%09%09%7D%0D%0A%09%09return false;
 %0D%0A%09%7D%0D%0A%7D%0D%0A

Makes pregnancy function return a boolean