 |
Crossfire Server, Trunk
1.75.0
|
Go to the documentation of this file.
61 int oldmagic =
armour->magic;
65 "This armour can not be enchanted any further.");
76 "This armour will not accept further enchantment.");
90 "You can't enchant this armour without unapplying it because it would consume your soul!");
111 if (
armour->weight <= 0) {
112 LOG(
llevInfo,
"Warning: enchanted armours can have negative weight\n.");
154 "Something blocks the magic of the scroll.");
160 "You need to mark an armor object.");
171 "Your marked item is not armour!");
176 "Applying armour enchantment.");
struct Settings settings
Global settings.
void set_abs_magic(object *op, int magic)
Sets magical bonus in an object, and recalculates the effect on the armour variable,...
void LOG(LogLevel logLevel, const char *format,...)
Logs a message to stderr, or to file.
#define QUERY_FLAG(xyz, p)
void register_apply(int ob_type, apply_func method)
Registers the apply method for the given type.
struct mapstruct * map
Pointer to the map in which this object is present.
#define FLAG_WIZCAST
The wizard can cast spells in no-magic area.
void fix_object(object *op)
Updates all abilities given by applied objects in the inventory of the given object.
void init_type_armour_improver(void)
Initializer for the ARMOUR_IMPROVER object type.
#define P_NO_MAGIC
Spells (some) can't pass this object.
#define FLAG_APPLIED
Object is ready for use by living.
int16_t level
Level of creature or object.
object * object_insert_in_ob(object *op, object *where)
This function inserts the object op in the linked list inside the object environment.
int16_t y
Position in the map for this object.
struct player * contr
Pointer to the player which control this object.
#define object_decrease_nrof_by_one(xyz)
#define MSG_TYPE_APPLY_SUCCESS
Was able to apply object.
uint8_t type
PLAYER, BULLET, etc.
float item_power_factor
See note in setings file.
static void improve_armour(object *op, object *improver, object *armour)
This code deals with the armour improvment scrolls.
int16_t item_power
Total item power of objects equipped.
char method_ret
Define some standard return values for callbacks which don't need to return any other results.
static method_ret armour_improver_type_apply(object *lighter, object *applier, int aflags)
Applies a scroll of Enchant Armour.
#define NDI_UNIQUE
Print immediately, don't buffer.
int get_map_flags(mapstruct *oldmap, mapstruct **newmap, int16_t x, int16_t y, int16_t *nx, int16_t *ny)
This rolls up wall, blocks_magic, blocks_view, etc, all into one function that just returns a P_.
object * object_split(object *orig_ob, uint32_t nr, char *err, size_t size)
object_split(ob,nr) splits up ob into two parts.
void esrv_update_item(int flags, object *pl, object *op)
Updates object *op for player *pl.
int apply_special(object *who, object *op, int aflags)
Apply an object.
int armor_max_enchant
Maximum number of times an armor can be enchanted.
char title[BIG_NAME]
Default title, like fighter, wizard, etc.
#define AP_UNAPPLY
Item is to be remvoed.
#define MSG_TYPE_APPLY
Applying objects.
#define MSG_TYPE_APPLY_ERROR
object * find_marked_object(object *op)
Return the object the player has marked with the 'mark' command below.
Player Stats effect how well a character can survie and interact inside the crossfire world This section discusses the various what they and how they effect the player s actions Also in this section are the stat modifiers that specific classes professions bring Player and sps the current and maximum the Current and Maximum The Current Sp can go somewhat negative When Sp is negative not all spells can be and a more negative Sp makes spell casting less likey to succeed can affect Damage and how the characters as well as how often the character can attack this affects the prices when buying and selling items if this drops the player will start losing hit points wd Cleric or Dwarf sm Elf wd Fireborn ft Human ra Mage C Monk se Ninja hi Priest C Quetzalcoatl mw Swashbuckler si Thief st Viking ba Warrior or Wizard C Wraith C Class Prof Str Dex Con Wis Cha Int Pow Net Skills Enclosed are codes used for the skills above The ones in and fighting should all be pretty self explanatory For the other a brief description is for a more detailed look at the skills doc file Skill remove use magic items phys no armour