pyherc.rules.items

Rules for manipulating items

pyherc.rules.items.can_dual_wield(model, character, item1, item2)

Checks if character can dual-wield given items @param model: model to use @param character: character to try dual-wielding @param item1: item to wield @param item2: item to wield @return: 1 if can dual-wield, 0 otherwise

pyherc.rules.items.drink_potion(model, character, potion, dice=None)

Drink a potion @param model: model to use @param character: character drinking a potion @param potion: potion to drink @param dice: optional prerolled dice

pyherc.rules.items.drop(model, character, item)

Drop item from inventory @param model: model to use @param character: character who is dropping the item @param item: item to be dropped

pyherc.rules.items.is_dual_wieldable(model, character, item)

Checks if item is dual-wieldable for a character @param model: model to use @param character: character to try dual-wielding @param item: item to dual wield @return: 1 if can dual-wield, 0 otherwise

pyherc.rules.items.pick_up(model, character, item)

Pick up an item

Args:
model: model to use character: character picking up the item item: item to be picked up
pyherc.rules.items.unwield(model, character, item, instant=False)

Unwield an item @param model: model to use @param character: character unwielding an item @param item: item to unwield @param instant: is this instant action, default False @return: True if unwield was succesfull, False otherwise

pyherc.rules.items.wield(model, character, item, dual_wield=False)

Wield a weapon @param model: model to use @param character: character trying to wield the weapon @param item: weapon to wield @param dual_wield: should character perform dual wield

Previous topic

pyherc.rules.factory

Next topic

pyherc.rules.los

This Page