void cTmpEff::On(P_CHAR pc) { if (!pc) return;  signed short tempsignedshort;  switch(this->num) {  case 1: pc->setPriv2(pc->priv2() | 0x02); break;  case 2: pc->setFixedLight( SrvParams->worldBrightLevel() );break; case 3:	pc->chgDex(-1 * this->more1);	break;  case 4: pc->setIn( (tempsignedshort = pc->in() ) - this->more1 ); break;  case 5: pc->setSt( (tempsignedshort = pc->st() ) - this->more1 );  break; case 6:	pc->chgDex(this->more1);	break;  case 7: pc->setIn( (tempsignedshort = pc->in() ) + this->more1 );  break;  case 8: pc->setSt( (tempsignedshort = pc->st() ) + this->more1 );	break; case 11:  pc->setSt( ( tempsignedshort = pc->st() ) + this->more1 ); pc->chgDex(this->more2);  pc->setIn( pc->in() + this->more3 ); break; case 12:  pc->setSt( ( tempsignedshort = pc->st() ) - this->more1 ); pc->chgDex(-1 * this->more2);  pc->setIn( pc->in() - this->more3 ); break; } }
void		On(P_CHAR pc) {;}
void cTmpEff::On(P_CHAR pc){	if (!pc)		return;		signed short tempsignedshort;	switch(this->num)	{//	case 1:	pc->priv2 |= 0x02;		break;	case 1: pc->setPriv2(pc->priv2() | 0x02); break;//	case 2:	pc->fixedlight = SrvParams->worldBrightLevel();break;	case 2: pc->setFixedLight( SrvParams->worldBrightLevel() );break;	case 3:	pc->chgDex(-1 * this->more1);	break;//	case 4:	pc->in-=this->more1;		break;	case 4: pc->setIn( (tempsignedshort = pc->in() ) - this->more1 ); break;//	case 5:	pc->st-=this->more1;		break;	case 5: pc->setSt( (tempsignedshort = pc->st() ) - this->more1 );  break;	case 6:	pc->chgDex(this->more1);	break;//	case 7:	pc->in+=this->more1;		break;	case 7: pc->setIn( (tempsignedshort = pc->in() ) + this->more1 );  break;//	case 8:	pc->st+=this->more1;		break;	case 8: pc->setSt( (tempsignedshort = pc->st() ) + this->more1 );	break;	case 11://		pc->st+=this->more1;		pc->setSt( ( tempsignedshort = pc->st() ) + this->more1 );				pc->chgDex(this->more2);//		pc->in+=this->more3;		pc->setIn( pc->in() + this->more3 );		break;	case 12://		pc->st-=this->more1;		pc->setSt( ( tempsignedshort = pc->st() ) - this->more1 );				pc->chgDex(-1 * this->more2);//		pc->in-=this->more3;		pc->setIn( pc->in() - this->more3 );		break;	}}