Skip to content

Commit

Permalink
add effective_type in formulas
Browse files Browse the repository at this point in the history
  • Loading branch information
newfrenchy83 committed Dec 26, 2024
1 parent 731ba54 commit c56f650
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/formula/callable_objects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,10 @@ variant attack_type_callable::get_value(const std::string& key) const
return variant(att_->id());
} else if(key == "description") {
return variant(att_->name());
} else if(key == "type") {
} else if(key == "base_type") {
return variant(att_->type());
} else if(key == "type") {
return variant(att_->effective_damage_type().first);
} else if(key == "icon") {
return variant(att_->icon());
} else if(key == "range") {
Expand Down Expand Up @@ -133,6 +135,7 @@ void attack_type_callable::get_inputs(formula_input_vector& inputs) const
{
add_input(inputs, "name");
add_input(inputs, "type");
add_input(inputs, "base_type");
add_input(inputs, "description");
add_input(inputs, "icon");
add_input(inputs, "range");
Expand Down

0 comments on commit c56f650

Please sign in to comment.