1
0

EntityEffect: read-only getters, added user and distance modifier fields

User: the pawn that uses or produces the entity effect (drinks/throws a potion)
Distance modifier: the potency modifier from splash potion effectivity radius
This commit is contained in:
archshift
2014-06-06 23:05:29 -07:00
parent 2123173202
commit a9a4c9c6b2
3 changed files with 35 additions and 11 deletions

View File

@@ -570,7 +570,7 @@ bool cPlayer::Feed(int a_Food, double a_Saturation)
void cPlayer::FoodPoison(int a_NumTicks)
{
AddEntityEffect(cEntityEffect::efHunger, cEntityEffect(0, a_NumTicks));
AddEntityEffect(cEntityEffect::efHunger, cEntityEffect(0, a_NumTicks, NULL));
}