Method: Mgmg::Equip#smith_cost

Defined in:
lib/mgmg/equip.rb

#smith_cost(outsourcing = false) ⇒ Object



148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
# File 'lib/mgmg/equip.rb', line 148

def smith_cost(outsourcing=false)
	if outsourcing
		if @kind < 8
			(@star**2)*2+@para.sum+hp().cdiv(4)-hp()+mp().cdiv(4)-mp()
		else
			(@star**2)+@para.sum+hp().cdiv(4)-hp()+mp().cdiv(4)-mp()
		end
	else
		if @kind < 8
			((@star**2)*2+@para.sum+hp().cdiv(4)-hp()+mp().cdiv(4)-mp()).div(2)
		else
			((@star**2)+@para.sum+hp().cdiv(4)-hp()+mp().cdiv(4)-mp()).div(2)
		end
	end
end