1
This commit is contained in:
parent
a932e54597
commit
ab509ec6e9
@ -31,15 +31,27 @@ void Weapon::Recalc()
|
|||||||
|
|
||||||
int Weapon::GetClipVolume(Creature* c)
|
int Weapon::GetClipVolume(Creature* c)
|
||||||
{
|
{
|
||||||
|
if (c->GetBattleContext()) {
|
||||||
return c->GetBattleContext()->GetClipVolume(c, this);
|
return c->GetBattleContext()->GetClipVolume(c, this);
|
||||||
|
} else {
|
||||||
|
return meta ? meta->i->clip_volume() :0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int Weapon::GetFireRate(Creature* c)
|
int Weapon::GetFireRate(Creature* c)
|
||||||
{
|
{
|
||||||
|
if (c->GetBattleContext()) {
|
||||||
return c->GetBattleContext()->GetFireRate(c, this);
|
return c->GetBattleContext()->GetFireRate(c, this);
|
||||||
|
} else {
|
||||||
|
return meta ? meta->i->fire_rate() :0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int Weapon::GetReloadTime(Creature* c)
|
int Weapon::GetReloadTime(Creature* c)
|
||||||
{
|
{
|
||||||
|
if (c->GetBattleContext()) {
|
||||||
return c->GetBattleContext()->GetReloadTime(c, this);
|
return c->GetBattleContext()->GetReloadTime(c, this);
|
||||||
|
} else {
|
||||||
|
return meta ? meta->i->reload_time() :0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user