Vatiken wrote: What is the switch() for this case?
Where is "b" being set?
What is supposed to be getting accomplished here?
1) the switch is
in parse_object in db.c where it calls for E, A, T, S, and # also.
2. It's being set in oedit.c where it's setting the bonuses for the modifier item type. It saves it in genobj.c
Code:
for (counter3 = 0; counter3 < MAX_SOCKET_AFFECT; counter3++)
if(obj->bonus[counter3].modifier)
fprintf(fp, "B\n"
"%d %d\n", obj->bonus[counter3].location, obj->bonus[counter3].modifier);
3. What this does is setting the modifier bonuses that will be applied to the weapon or armor you want to socket. IE if you have MAX HIT + 5 Modifier the bonuses on it would be MAXHIT + 5. That maxhit+5 would transfer its bonuses over to the item.