WoG_PRC8/src/_removed/sei_onpcrested.nss
Jaysyn904 e44b9e9132 2025/08/24 Early Update
Updated for PRC8 updates.
2025-08-24 01:04:07 -04:00

38 lines
674 B
Plaintext

//
// NWOnPCRested
//
// When a PC finishes resting give them back the subrace items
// (if they've lost it).
//
// (c) Shir'le E. Illios, 2002 (shirle@drowwanderer.com)
//
////////////////////////////////////////////////////////
#include "subraces"
void main()
{
object oPC = GetLastPCRested();
switch( GetLastRestEventType() )
{
case REST_EVENTTYPE_REST_FINISHED:
{
SEI_KeepSubraceItem( oPC );
}
break;
case REST_EVENTTYPE_REST_STARTED:
case REST_EVENTTYPE_REST_CANCELLED:
case REST_EVENTTYPE_REST_INVALID:
default:
break;
} // End switch-case
} // End main