예제 #1
0
파일: mobfactory.py 프로젝트: dahui58/rpg
	def populateSynthMob(stage):
		stageCounts = {0:1,1:2,2:2,3:3,4:3,5:4}
		mob = []
		for i in range (1,stageCounts[stage]+1):
			nameString = "synth" + str(i)
			synth = Character(nameString, endurance=19, agility=20, strength=22, dexterity=25, isPlayable=False, humanity=0.0)
			possibleWeapons = [0,1,7]
			selectedWeapon = RandUtils.pickRandomFromList(possibleWeapons)
			synth.weapon = State.weapons[selectedWeapon]
			mob.append(synth)
		return mob
예제 #2
0
	def buildCharacter(self):
		bob = Character(name = self.name,
			charClass = self.charClass,
			strength = self.fighterStats[0],
			dexterity = self.fighterStats[1],
			endurance = self.fighterStats[2],
			intelligence = self.fighterStats[3],
			agility = self.fighterStats[4],
			speed = self.fighterStats[5],
			humanity = self.fighterStats[6],
			isPlayable = True)
		
		if self.charClass == Class.FIGHTER:
			bob.weapon = State.weapons[3]
		else: bob.weapon = State.weapons[13]
		
		bob.equipArmour(State.armour[3])
		bob.equipArmour(State.armour[4])
		bob.equipArmour(State.armour[5])
		#bob.getEquipmentLoad()
		
		return bob