2017-12-10 02:49:22 +11:00
|
|
|
#include "../ScriptObject.h"
|
2017-12-10 02:13:54 +11:00
|
|
|
|
2017-12-11 21:05:02 +11:00
|
|
|
class Status50 : public StatusEffectScript
|
2017-12-10 02:13:54 +11:00
|
|
|
{
|
|
|
|
public:
|
2017-12-11 21:05:02 +11:00
|
|
|
Status50() : StatusEffectScript( "StatusEffect50", 50 )
|
2017-12-10 02:49:22 +11:00
|
|
|
{}
|
2017-12-10 02:13:54 +11:00
|
|
|
|
2017-12-10 22:04:46 +11:00
|
|
|
virtual void onTick( Core::Entity::ActorPtr actor )
|
|
|
|
{
|
|
|
|
if( actor->isPlayer() )
|
|
|
|
actor->getAsPlayer()->sendDebug( "tick tock bitch" );
|
|
|
|
}
|
2017-12-11 21:10:54 +11:00
|
|
|
|
|
|
|
virtual void onApply( Entity::ActorPtr actor )
|
|
|
|
{
|
|
|
|
if( actor->isPlayer() )
|
|
|
|
actor->getAsPlayer()->sendDebug( "status50 applied" );
|
|
|
|
}
|
|
|
|
|
|
|
|
virtual void onExpire( Entity::ActorPtr actor )
|
|
|
|
{
|
|
|
|
if( actor->isPlayer() )
|
|
|
|
actor->getAsPlayer()->sendDebug( "status50 timed out" );
|
|
|
|
}
|
|
|
|
|
2017-12-10 02:13:54 +11:00
|
|
|
};
|
|
|
|
|
2017-12-11 21:05:02 +11:00
|
|
|
EXPORT_STATUSEFFECTSCRIPT( Status50 )
|