Skip to content

Option for defaulting an attribute to zero on attribute formula #64

@marcelomoreli

Description

@marcelomoreli

Today if you try to create an attribute (i.e: health) and have different formulas with different attributes based on class / char type or anything else fails if the entity doesn't have all the attributes.

Example:
Let's suppose NPC health is 10 * strength * (100 * bare_hand_damage)
and Non-Npc health: level * vitality

where NPCs doesn't have vitality and Players don't have bare_hand_damage, it fails.

A suggestion discussed in slack would be a toggle option on ./ranvier with something like state.AttributeFactory.setAllowSomethingSomethingRequires(true);

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions