Re: Actually using Charisma

From: Mike Breuer (mbreuer@new.rr.com)
Date: 10/15/01


----- Original Message -----
From: "George Greer" <greerga@CIRCLEMUD.ORG>


> I've been trying to make charisma do things beyond limit the number of
> charmed followers you can have.  I have a formula that seems somewhat
fair:
>
>         sell_price = item_value * shop_adjust * (1 - (get_cha - 10) /
81)
>         buy_price  = item_value * shop_adjust * (1 + (get_cha - 10) /
81)

One more thing....

You need to include the difference between the shop's buy/sell profit in
your formula, or shops that buy and sell at the same rate (or within 10%
up and down) can be used as a source of income.  Perhaps:

/* char is selling to shop */
shop_adjust = MIN(1, SHOP_SELLPROFIT + (get_cha - 10) / 81)
sell_price = item_value * shop_adjust

/* char is buying from shop */
shop_adjust = MAX(1, SHOP_BUYPROFIT - (get_cha - 10) / 81)
buy_price  = item_value * shop_adjust

This DOES prevent the creation of shops that buy/sell at a loss, but I
don't really see that as a bad thing.

Mike

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/06/01 PST