Re: [Code] Float & Int

From: George (greerga@CIRCLEMUD.ORG)
Date: 12/05/97


On Fri, 5 Dec 1997, MUDaholic wrote:

>      if (IS_MAGIC_MOB(victim))
>        dam = dam * GET_MAG_MULT(weapon);

if (IS_MAGIC_MOB(victim)) {
  char imm[256];
  sprintf(imm, "Magic mob: YES Damage: %d", dam);
  dam *= GET_MAG_MULT(weapon);
  sprintf(imm, "%s New Damage: %d Mag_Mult: %d", imm, dam,  GET_MAG_MULT(weapon));
  log(imm);
} else
  log("Not a magic mob.");

--
George Greer  -  Me@Null.net   | Genius may have its limitations, but stupidity
http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST