|
From: <gjh...@us...> - 2003-09-05 20:30:15
|
Update of /cvsroot/mistmud/mistmud
In directory sc8-pr-cvs1:/tmp/cvs-serv27265
Modified Files:
Tag: rev_1_3
act.other.c
Log Message:
- make do_steal() use the new currency scheme (missed a spot)
Index: act.other.c
===================================================================
RCS file: /cvsroot/mistmud/mistmud/act.other.c,v
retrieving revision 1.7.2.2
retrieving revision 1.7.2.3
diff -C2 -d -r1.7.2.2 -r1.7.2.3
*** act.other.c 31 Aug 2003 05:49:39 -0000 1.7.2.2
--- act.other.c 5 Sep 2003 20:30:12 -0000 1.7.2.3
***************
*** 805,814 ****
* Steal some gold coins
*/
! gold = (int) ((GET_GOLD(victim) * number(1, 10)) / 100);
gold = MIN(number(1000, 2000), gold);
if (gold > 0) {
! GET_GOLD(ch) += gold;
! GET_GOLD(victim) -= gold;
! sprintf(buf, "Bingo! You got %d gold coins.\n\r", gold);
send_to_char(buf, ch);
if (IS_PC(ch) && IS_PC(victim)) {
--- 805,813 ----
* Steal some gold coins
*/
! gold = (int) ((ConvertToCopperCoins(victim) * number(1, 10)) / 100);
gold = MIN(number(1000, 2000), gold);
if (gold > 0) {
! PayFromTo(victim, ch, gold);
! sprintf(buf, "Bingo! You got %d coins.\n\r", gold);
send_to_char(buf, ch);
if (IS_PC(ch) && IS_PC(victim)) {
|