Major update
Fixed CCOH, Fixed starting GP, Fixed DMFI languages, Fix cep weapon appearances, Fixed new player start up system. Added PC deleter. Added ACP 4.1. Full compile. Updated release archive.
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
Sets the Lineage of a new vampire... their maker and
|
||||
up to four generations beyond.
|
||||
*/
|
||||
#include "prc_inc_racial"
|
||||
|
||||
void vamp_setlineage(object oPC, object oTarget)
|
||||
{
|
||||
string lineage1 = GetCampaignString("Vampire","Lineage",oPC);
|
||||
@@ -94,8 +96,13 @@ void vamp_blooddrain(object oPC,object oTarget)
|
||||
|
||||
|
||||
PrintString("vamp_blooddrain(): - PC|" + GetName(oPC) + " TARGET|" + GetName(oTarget) + " - Function called.");
|
||||
// If target is undead, elemental or construct skip everything.
|
||||
if ((GetObjectType(oTarget) == OBJECT_TYPE_CREATURE)&&(GetRacialType(oTarget)!=RACIAL_TYPE_ELEMENTAL)&&(GetRacialType(oTarget)!=RACIAL_TYPE_UNDEAD)&&(GetRacialType(oTarget)!=RACIAL_TYPE_CONSTRUCT)&&GetSubRace(oTarget) != "Vampire")
|
||||
// If target is undead, elemental, ooze, plant or construct skip everything.
|
||||
if ((GetObjectType(oTarget) == OBJECT_TYPE_CREATURE) && (MyPRCGetRacialType(oTarget)!= RACIAL_TYPE_ELEMENTAL) &&
|
||||
(MyPRCGetRacialType(oTarget)!= RACIAL_TYPE_UNDEAD) &&
|
||||
(MyPRCGetRacialType(oTarget)!= RACIAL_TYPE_CONSTRUCT) &&
|
||||
(MyPRCGetRacialType(oTarget)!= RACIAL_TYPE_PLANT) &&
|
||||
(MyPRCGetRacialType(oTarget)!= RACIAL_TYPE_OOZE) &&
|
||||
GetSubRace(oTarget) != "Vampire")
|
||||
{
|
||||
PrintString("vamp_blooddrain(): - PC|" + GetName(oPC) + " TARGET|" + GetName(oTarget) + " - Target is not an invalid racial victim.");
|
||||
// Checks is target allready dead. Will be needing later.
|
||||
|
Reference in New Issue
Block a user