CURRENCY_RATE(1) CURRENCY_RATE(1)
NNAAMMEE
_c_u_r_r_e_n_c_y___r_a_t_e_(_) - returns how much of a currency equals
one EU
SSYYNNOOPPSSIISS
float currency_rate(string type)
DDEESSCCRRIIPPTTIIOONN
Given a currency type as an argument, this function will
tell you how much of that currency is needed to equal one
EU, or economic unit. An economic unit is a base value
used by the mud to set relative values. The _s_e_t___v_a_l_u_e_(_)
function in objects uses EU's.
EEXXAAMMPPLLEESS
_c_u_r_r_e_n_c_y___r_a_t_e("gold") would return 1.5 if, for example, it
takes 3 gold to buy something that has a _s_e_t___v_a_l_u_e_(_) of 2.
LLOOCCAATTIIOONN
/secure/SimulEfun/economy.c
SSEEEE AALLSSOO
_c_u_r_r_e_n_c_y___i_n_f_l_a_t_i_o_n_(_), _c_u_r_r_e_n_c_y___m_a_s_s_(_), _c_u_r_r_e_n_c_y___v_a_l_u_e_(_),
_m_u_d___c_u_r_r_e_n_c_i_e_s_(_)
AAuutthhoorr
Descartes of Borg
1