Initial commit
Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
16
_module/nss/hc_hb_campfire.nss
Normal file
16
_module/nss/hc_hb_campfire.nss
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
#include "hc_inc"
|
||||
|
||||
void main()
|
||||
{
|
||||
int nCt=GetLocalInt(OBJECT_SELF,"BURNCOUNT");
|
||||
int nBT=GetLocalInt(oMod,"BURNTORCH");
|
||||
if((nBT && nCt+1 >= nBT *(FloatToInt(HoursToSeconds(3)/6.0))) ||
|
||||
nCt+1 > FloatToInt(HoursToSeconds(3)/6.0))
|
||||
{
|
||||
RecomputeStaticLighting(GetArea(OBJECT_SELF));
|
||||
DestroyObject(OBJECT_SELF);
|
||||
}
|
||||
else
|
||||
SetLocalInt(OBJECT_SELF,"BURNCOUNT", nCt+1);
|
||||
}
|
||||
Reference in New Issue
Block a user