Well what I did was make a flag set. like MAT_STEEL, etc.. and then modify accordingly.
Made it all easy. ----- Original Message ----- From: "Tom Whiting" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Sunday, November 30, 2003 3:11 PM Subject: Re: material imm and vulns > should be able to add this. > > switch (check_immune_material(victim, wield)) > { > case (IS_IMMUNE): > immune = TRUE; > dam = 0; > break; > case (IS_RESISTANT): > dam -= dam / 3; > break; > case (IS_VULNERABLE): > dam += dam / 2; > break; > } > It's not that simple. In order to get immunities to work, you have to actually get them to work in the first place. Remove all the NULL immunities, make sure OLC reads and writes immunities FLAGGED (as it does with chars), etc. check_immune() checks against a flags list, there IS no flag list currently in materials, and it'd pretty much not a good thing.Unless you're going to have equipment taking damage, you are pretty much undertaking something that will be far more time costly than beneficial. --------- http://www.hosting-talk.com :Hosting Talk Forums - Hosting discussion. http://www.linux-tech.net: Quality, affordable Linux Systems Administration http://www.mudservers.net : Mud hosting from $10 a month -- ROM mailing list [email protected] http://www.rom.org/cgi-bin/mailman/listinfo/rom

