Skip to content

Commit

Permalink
Redefine damage rate
Browse files Browse the repository at this point in the history
Define damage rate as damage/attack. See MathCancer#223.
  • Loading branch information
drbergman committed Apr 12, 2024
1 parent 84d033a commit d75f95f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/PhysiCell_cell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1404,7 +1404,7 @@ void Cell::attack_cell( Cell* pCell_to_attack , double dt )
{
// std::cout << this->type_name << " attacks " << pCell_to_attack->type_name << std::endl;
//
pCell_to_attack->state.damage += phenotype.cell_interactions.damage_rate * dt;
pCell_to_attack->state.damage += phenotype.cell_interactions.damage_rate;
pCell_to_attack->state.total_attack_time += dt;
}
return;
Expand Down

0 comments on commit d75f95f

Please sign in to comment.