damage.DnD: Current HP damage modifier

Description Usage Arguments Value See Also Examples

Description

Will allow for the DnD character's current HP to be automatically updated. No assignment is neccessary. This is a generic method with two functions, one for a DnD class object and one for a non-DnD class object.

Usage

1
2
## S3 method for class 'DnD'
damage(which.character, damage)

Arguments

which.character

The DnD character who being hurt

damage

The amount the character's health is to decrease by

Value

Will return the character with the new health status

See Also

damage.default

Examples

1
2
3
DnD(Blacksmith_Jamestown, 4)
damage(Blacksmith_Jamestown, 20)
Blacksmith_Jamestown$hp

vinny-paris/DnD documentation built on May 3, 2019, 6:13 p.m.