Example #1
0
	public void damageAndAddFireMark(Entity e){
		e.marks[MARKS.fire].add(1);
		e.dealDamage(20);
	}
Example #2
0
	public void transferHealth(Entity e){
		int n = e.marks[MARKS.water].getCount();
		e.dealDamage(n*5);
		GameObject.FindWithTag("Player").GetComponent<Entity>().dealDamage(-5*n);
		e.marks[MARKS.water].consume();
	}
Example #3
0
	public void damageAndAddWaterMark(Entity e){
		Debug.Log ("Hit with water bolt.");
		e.marks[MARKS.water].add(1);
		e.dealDamage(10);
	}