Initial upload.
Adding base PRC 4.19a files to repository.
This commit is contained in:
18
trunk/psionics/psi_ac_conv_a8c.nss
Normal file
18
trunk/psionics/psi_ac_conv_a8c.nss
Normal file
@@ -0,0 +1,18 @@
|
||||
// Sets the option Resistance - Cold active on the AC being edited
|
||||
|
||||
|
||||
#include "psi_inc_ac_const"
|
||||
#include "psi_inc_ac_convo"
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
int nFlags = GetLocalInt(oPC, ASTRAL_CONSTRUCT_OPTION_FLAGS + EDIT);
|
||||
nFlags |= ASTRAL_CONSTRUCT_OPTION_RESISTANCE;
|
||||
int nElemFlags = GetLocalInt(oPC, ASTRAL_CONSTRUCT_RESISTANCE_FLAGS + EDIT);
|
||||
nElemFlags |= ELEMENT_COLD;
|
||||
|
||||
SetLocalInt(oPC, ASTRAL_CONSTRUCT_OPTION_FLAGS + EDIT, nFlags);
|
||||
SetLocalInt(oPC, ASTRAL_CONSTRUCT_RESISTANCE_FLAGS + EDIT, nElemFlags);
|
||||
}
|
Reference in New Issue
Block a user