Module m_damage_source

Documentation for the modules-m_damage_source module in /std/modules/m_damage_source.c.

Functions

int query_must_dual_wield()

Returns 1 if the weapon must be dual wielded.

int query_can_dual_wield()

Returns 1 if this weapon can be dual wielded.

void set_can_dual_wield(int x)

Adds the property “versatile” to the weapon, and marks it as a weapon that can be wielded in both left, right, and both hands. Properties like “versatile” can be seen in the equip command.

string *query_damage_type()

Returns a string array of the damage types the weapon can cause.

int query_to_hit_bonus(object target)

Queries the direct bonus chance to hit adversaries.

void set_to_hit_bonus(int x)

Sets a direct bonus chance to hit adversaries. If a weapon has a positive to hit bonus, it receives the property “precise”. If it receives a negative bonus it receives the property “imprecise”. Properties can be seen in the equip command.

void set_disarm_bonus(int x)

Sets a direct bonus chance to disarm adversaries.

int query_damage_bonus(object target)

Queries the direct damage bonus on adversaries.

void set_damage_type(string *str...)

Sets the damage type or types a weapon uses. The damage types should be one one of the ones returned by: DAMAGE_D->query_damage_types().

void set_combat_messages(string type)

Set the set of combat messages which are used by default

void set_combat_message(string type, string msg)

Set a single combat message, removing the existing one(s)

mixed query_combat_message(string type)

Returns the combat message for a given type

void add_combat_message(string type, string msg)

Adds another combat message to the damage source.

add_combat_message(“miss”,”$N $vmiss completely, $n seems drunk.”);

void replace_combat_message(string type, string msg)

Replace any other messages with this message

replace_combat_message(“miss”,”$N $vmiss completely, $n seems drunk.”);

File generated by Lima 1.1a4 reStructured Text daemon.