Only the cEntityEffect::effXXX constants are Lua-exported.
The rest of the classes don't need exporting, there's no interface using them anyway.
This commit is contained in:
parent
5193335efa
commit
f5259d7651
@ -223,7 +223,8 @@ void cEntityEffectPoison::OnTick(cPawn & a_Target)
|
||||
cMonster & Target = (cMonster &) a_Target;
|
||||
|
||||
// Doesn't effect undead mobs, spiders
|
||||
if (Target.IsUndead() ||
|
||||
if (
|
||||
Target.IsUndead() ||
|
||||
(Target.GetMobType() == cMonster::mtSpider) ||
|
||||
(Target.GetMobType() == cMonster::mtCaveSpider)
|
||||
)
|
||||
|
@ -36,6 +36,8 @@ public:
|
||||
effSaturation = 23,
|
||||
} ;
|
||||
|
||||
// tolua_end
|
||||
|
||||
/** Creates an empty entity effect */
|
||||
cEntityEffect(void);
|
||||
|
||||
@ -93,11 +95,12 @@ protected:
|
||||
|
||||
/** The distance modifier for affecting potency */
|
||||
double m_DistanceModifier;
|
||||
};
|
||||
}; // tolua_export
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// Speed
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
class cEntityEffectSpeed:
|
||||
public cEntityEffect
|
||||
{
|
||||
@ -109,9 +112,10 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// Slowness
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
|
||||
class cEntityEffectSlowness:
|
||||
public cEntityEffect
|
||||
{
|
||||
@ -123,9 +127,10 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// Haste
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
|
||||
class cEntityEffectHaste:
|
||||
public cEntityEffect
|
||||
{
|
||||
@ -137,9 +142,10 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// Mining Fatigue
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
|
||||
class cEntityEffectMiningFatigue:
|
||||
public cEntityEffect
|
||||
{
|
||||
@ -151,9 +157,10 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// Strength
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
|
||||
class cEntityEffectStrength:
|
||||
public cEntityEffect
|
||||
{
|
||||
@ -165,9 +172,10 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// Instant Health
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
|
||||
class cEntityEffectInstantHealth:
|
||||
public cEntityEffect
|
||||
{
|
||||
@ -181,9 +189,10 @@ public:
|
||||
virtual void OnActivate(cPawn & a_Target) override;
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// Instant Damage
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
|
||||
class cEntityEffectInstantDamage:
|
||||
public cEntityEffect
|
||||
{
|
||||
@ -197,9 +206,10 @@ public:
|
||||
virtual void OnActivate(cPawn & a_Target) override;
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// Jump Boost
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
|
||||
class cEntityEffectJumpBoost:
|
||||
public cEntityEffect
|
||||
{
|
||||
@ -211,9 +221,10 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// Nausea
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
|
||||
class cEntityEffectNausea:
|
||||
public cEntityEffect
|
||||
{
|
||||
@ -225,9 +236,10 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// Regeneration
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
|
||||
class cEntityEffectRegeneration:
|
||||
public cEntityEffect
|
||||
{
|
||||
@ -241,9 +253,10 @@ public:
|
||||
virtual void OnTick(cPawn & a_Target) override;
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// Resistance
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
|
||||
class cEntityEffectResistance:
|
||||
public cEntityEffect
|
||||
{
|
||||
@ -255,9 +268,10 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// Fire Resistance
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
|
||||
class cEntityEffectFireResistance:
|
||||
public cEntityEffect
|
||||
{
|
||||
@ -269,9 +283,10 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// Water Breathing
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
|
||||
class cEntityEffectWaterBreathing:
|
||||
public cEntityEffect
|
||||
{
|
||||
@ -283,9 +298,10 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// Invisibility
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
|
||||
class cEntityEffectInvisibility:
|
||||
public cEntityEffect
|
||||
{
|
||||
@ -297,9 +313,10 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// Blindness
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
|
||||
class cEntityEffectBlindness:
|
||||
public cEntityEffect
|
||||
{
|
||||
@ -311,9 +328,10 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// Night Vision
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
|
||||
class cEntityEffectNightVision:
|
||||
public cEntityEffect
|
||||
{
|
||||
@ -325,9 +343,10 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// Hunger
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
|
||||
class cEntityEffectHunger:
|
||||
public cEntityEffect
|
||||
{
|
||||
@ -338,12 +357,14 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
// cEntityEffect overrides:
|
||||
virtual void OnTick(cPawn & a_Target) override;
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// Weakness
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
|
||||
class cEntityEffectWeakness:
|
||||
public cEntityEffect
|
||||
{
|
||||
@ -354,12 +375,14 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
// cEntityEffect overrides:
|
||||
virtual void OnTick(cPawn & a_Target) override;
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// Poison
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
|
||||
class cEntityEffectPoison:
|
||||
public cEntityEffect
|
||||
{
|
||||
@ -370,12 +393,14 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
// cEntityEffect overrides:
|
||||
virtual void OnTick(cPawn & a_Target) override;
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// Wither
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
|
||||
class cEntityEffectWither:
|
||||
public cEntityEffect
|
||||
{
|
||||
@ -386,12 +411,14 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
// cEntityEffect overrides:
|
||||
virtual void OnTick(cPawn & a_Target) override;
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// Health Boost
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
|
||||
class cEntityEffectHealthBoost:
|
||||
public cEntityEffect
|
||||
{
|
||||
@ -403,9 +430,10 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// Absorption
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
|
||||
class cEntityEffectAbsorption:
|
||||
public cEntityEffect
|
||||
{
|
||||
@ -417,9 +445,10 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
// Saturation
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
|
||||
class cEntityEffectSaturation:
|
||||
public cEntityEffect
|
||||
{
|
||||
@ -435,4 +464,4 @@ public:
|
||||
|
||||
|
||||
|
||||
// tolua_end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user