function LSouSouMember(data,flag){
	var self = this;
	if(data){
		if(flag){
			self.data = data;
		}else{
			self.data = self.calculation(data);
		}
	}
}
LSouSouMember.prototype.calculation = function(data){
	var self = this;
	var member = LGlobal.chara["peo" + data.Index];
	var arm = LGlobal.arms["Arms"+data.Arms];
	var result = data;
	if(!result.Lv)result.Lv = 1;
	result.Attack = result.Force/2 + self.upValue(arm.Property.Attack,result.Force)*result.Lv;
	result.Spirit = result.Intelligence/2 + self.upValue(arm.Property.Spirit,result.Intelligence)*result.Lv;
	result.Defense = result.Command/2 + self.upValue(arm.Property.Defense,result.Command)*result.Lv;
	result.Breakout = result.Agile/2 + self.upValue(arm.Property.Breakout,result.Agile)*result.Lv;
	result.Morale = result.Luck/2 + self.upValue(arm.Property.Morale,result.Luck)*result.Lv;
	result.MaxTroops = member.MaxTroops + arm.Property.Troops*result.Lv;
	result.MaxStrategy = member.MaxStrategy + arm.Property.Strategy*result.Lv;
	result.Troops = result.MaxTroops;
	result.Strategy = result.MaxStrategy;
	result.Exp = 0;
	return result;
};
LSouSouMember.prototype.upValue = function(type,value){
	if(type == "S"){
		if(value < 50)return 1;
		if(value < 70)return 2;
		if(value < 90)return 3;
		return 4;
	}else if(type == "A"){
		if(value < 50)return 1;
		if(value < 70)return 2;
		return 3;
	}else if(type == "B"){
		if(value < 50)return 1;
		return value >= 90?3:2;
	}else if(type == "C"){
		return value >=70?2:1;
	}
	return 0;
};
LSouSouMember.prototype.getIndex = function(){
	return this.data.Index;
};
LSouSouMember.prototype.getS = function(){
	return this.data.S;
};
LSouSouMember.prototype.getDistance = function(){
	var arm = LGlobal.arms["Arms"+this.data.Arms];
	return arm.Distance;
};
LSouSouMember.prototype.getArms = function(){
	return this.data.Arms;
};
LSouSouMember.prototype.getRangeAttack = function(){
	return LGlobal.arms["Arms" + this.data.Arms]["RangeAttack"];
};
LSouSouMember.prototype.getRangeAttackTarget = function(){
	return LGlobal.arms["Arms" + this.data.Arms]["RangeAttackTarget"];
};
LSouSouMember.prototype.getLv = function(){
	return this.data.Lv;
};
LSouSouMember.prototype.getExp = function(){
	return this.data.Exp;
};
LSouSouMember.prototype.getBreakout = function(){
	return this.data.Breakout;
};
LSouSouMember.prototype.getAttack = function(){
	return this.data.Attack;
};
LSouSouMember.prototype.getDefense = function(){
	return this.data.Defense;
};
LSouSouMember.prototype.getSpirit = function(){
	return this.data.Spirit;
};
LSouSouMember.prototype.getMorale = function(){
	return this.data.Morale;
};
LSouSouMember.prototype.getTroops = function(){
	return this.data.Troops;
};
LSouSouMember.prototype.getStrategy = function(){
	return this.data.Strategy;
};
