Crossfire Server, Trunk
|
#include <global.h>
#include <ob_methods.h>
#include <ob_types.h>
#include <sounds.h>
#include <sproto.h>
Go to the source code of this file.
Functions | |
void | init_type_skillscroll (void) |
static method_ret | skillscroll_type_apply (object *lighter, object *applier, int aflags) |
Implimentation of skill scrolls.
Definition in file skillscroll.c.
void init_type_skillscroll | ( | void | ) |
Initializer for the SKILLSCROLL object type.
Definition at line 39 of file skillscroll.c.
References register_apply(), SKILLSCROLL, and skillscroll_type_apply().
Referenced by register_all_ob_types().
|
static |
Applies a skillscroll.
scroll | Skillscroll to apply. |
applier | object attempting to apply the scroll. Should be a player. |
aflags | special flags (always apply/unapply). |
Definition at line 55 of file skillscroll.c.
References draw_ext_info_format(), learn_skill(), MAX_BUF, METHOD_OK, MSG_TYPE_APPLY, MSG_TYPE_APPLY_ERROR, MSG_TYPE_APPLY_FAILURE, MSG_TYPE_APPLY_SUCCESS, give::name, NDI_UNIQUE, object_decrease_nrof_by_one, PLAYER, query_name(), obj::skill, obj::type, and nlohmann::detail::void().
Referenced by init_type_skillscroll().