![]() |
#1 |
New Member
Join Date: Aug 2009
Posts: 2
![]() |
Weapon material immunities
Hello. I installed a FirstMud server, and have modified it a bit. I want to get imms/res/vulns to weapon materials working, and have churned out some code. In handler.c I've got this:
In fight.c, the damage modifier is checked like so: In defines.h, I set up material types (I think): And lastly, in proto.h, the check_material function is defined: I've just begun coding, and I'm using the functions already in place, as well as whatever I can find on the net, to guide my modifications. I have managed to achieve most of what I've started, but right now the compiler complains that The referenced line is the first one from fight.c: I'd appreciate any help anyone could give me. Thanks in advance! |
![]() |
![]() |
![]() |
#2 |
Legend
Join Date: Aug 2007
Name: NewWorlds
Home MUD: New Worlds
Posts: 1,425
![]() ![]() |
Re: Weapon material immunities
Your CharData is a string pointer and your ObjData is an object pointer. You can't do that without a Mixed array.
|
![]() |
![]() |
![]() |
Thread Tools | |
|
|