#include #include #include "equipment.h" /* kernel includes */ #include "callbacks.h" #include "faction.h" #include "item.h" #include "race.h" #include "spell.h" #include "unit.h" /* util includes */ #include #include #include #include #include #include /* libc includes */ #include #include #include bool equip_unit(struct unit *u, const char *eqname) { return equip_unit_mask(u, eqname, EQUIP_ALL); } bool equip_unit_mask(struct unit *u, const char *eqname, int mask) { if (callbacks.equip_unit) { return callbacks.equip_unit(u, eqname, mask); } return false; }