C# Class Magic, UnderworldExporter

Inheritance: MonoBehaviour
Mostrar archivo Open project: hankmorgan/UnderworldExporter Class Usage Examples

Public Properties

Property Type Description
ActiveRunes int[]
CurMana int
InfiniteMana bool
InventorySpell bool
MaxMana int
ObjectInSlot GameObject
PlayerRunes bool[]
ReadiedSpell string
SpellCost int
SummonCount long
playerUW UWCharacter

Public Methods

Method Description
ApplySpellCost ( ) : void

Deducts the spellcost from the players mana level

CastEnchantment ( GameObject caster, GameObject target, int EffectID, bool ready, int SpellRule ) : SpellEffect,

Casts the enchantment based on the spell rules, targets and ready state

CastEnchantment ( GameObject caster, GameObject target, int EffectID, int SpellRule ) : SpellEffect,

Casts the enchantment that may need readying

CastEnchantmentImmediate ( GameObject caster, GameObject target, int EffectID, int SpellRule ) : SpellEffect,

Casts the enchantment immediately

CastTheFrog ( GameObject caster, int EffectID ) : void

Casts bullfrog spell

Cast_AnCorpMani ( GameObject caster, int EffectID ) : void

Casts smite undead

Cast_AnExPor ( GameObject caster, int EffectID ) : void

Casts Paralyze

Cast_AnNox ( GameObject caster, int EffectID ) : void

Casts Cure Poison

Cast_AnTym ( GameObject caster, int EffectID ) : void

Casts Time Stop

Cast_Curse ( GameObject caster, int EffectID ) : void

Casts curse (generic)

Cast_CursedItem ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void

Casts the cursed item spell (generic)

Cast_DetectMonster ( GameObject caster, int EffectID ) : void

Casts detect monster.

Cast_ExYlem ( GameObject caster, bool Ready, int EffectID ) : void

Casts the magic open

Cast_FlamHur ( GameObject caster, int EffectID ) : void

Casts flame wind

Cast_Flameproof ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void

Casts the flameproof. (generic)

Cast_FreezeTime ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void

Casts freeze time (generic)

Cast_GravSanctPor ( GameObject caster, int EffectID ) : void

Casts Missile Protection

Cast_Hallucination ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void

Casts the hallucination effect

Cast_Heal ( GameObject caster, int EffectID ) : void

Casts the heal spell (generic)

Cast_InJux ( GameObject caster, int EffectID ) : void

Casts rune of warding

Cast_InManiRel ( GameObject caster, int EffectID ) : void

Casts ally

Cast_InManiYlem ( GameObject caster, int EffectID ) : void

Casts Create Food

Cast_KalMani ( GameObject caster, int EffectID ) : void

Create Summon Monster

Cast_Leap ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void

Casts the leap spell (generic)

Cast_Levitate ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void

Casts the levitate spels (generic)

Cast_LevitateSpells ( GameObject caster, int EffectID ) : void

Casts the levitate spells

Cast_Light ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void

Casts the light spells (generic)

Cast_LightSpells ( GameObject caster, int EffectID ) : void

Casts the light spells (generic).

Cast_Mana ( GameObject caster, int EffectID ) : void

Casts the mana spells

Cast_MazeNavigation ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void

Casts the maze navigation spell generic

Cast_NameEnchantment ( GameObject caster, bool Ready, int EffectID ) : void

Casts name enchantment.

Cast_NightVision ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void

Casts the night vision (generic)

Cast_NoxYlem ( GameObject caster, int EffectID ) : void

Casts poison other

Cast_OrtGrav ( GameObject caster, bool Ready, int EffectID ) : void

Casts electric/lightning bolt.

Cast_OrtJux ( GameObject caster, bool Ready, int EffectID ) : void

Casts Magic Arrow/Missile

Cast_OrtPorWis ( GameObject caster, int EffectID ) : void

Roaming Sight

Cast_OrtPorYlem ( GameObject caster, int EffectID ) : void

Casts telekinesis

Cast_Paralyze ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void

Casts the paralyze spells (generic)

Cast_Poison ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void

Casts the poison spells (generic)

Cast_PorFlam ( GameObject caster, bool Ready, int EffectID ) : void

Casts the fireball spell

Cast_QuasCorp ( GameObject caster, int EffectID ) : void

Casts fear

Cast_RelDesPor ( GameObject caster, int EffectID ) : void

Casts slowfall

Cast_RelTymPor ( GameObject caster, int EffectID ) : void

Casts Speed

Cast_Resistance ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void

Casts the resistance spells (generic)

Cast_ResistanceAgainstType ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void

Casts the resistance against type spells (generic)

Cast_ResistanceSpells ( GameObject caster, int EffectID ) : void

Casts the resistance spells.

Cast_RoamingSight ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void

Casts the roaming sight generic

Cast_RuneOfWarding ( Vector3 pos, int EffectID ) : void

Casts the rune of warding (generic)

Cast_SanctFlam ( GameObject caster, int EffectID ) : void

Casts flame proof

Cast_SanctJux ( GameObject caster, bool Ready, int EffectID ) : void

Cast Strengthen Door

Cast_SlowFall ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void

Casts the slow fall. generic

Cast_Speed ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void

Casts the speed spells generic

Cast_Stealth ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void

Casts the stealth spells (generic)

Cast_StealthSpells ( GameObject caster, int EffectID ) : void

Casts the stealth spells.

Cast_Telekinesis ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void

Casts the telekinesis spell generic

Cast_UusPor ( GameObject caster, int EffectID ) : void

Cast Leap/Jump

Cast_VasAnWis ( GameObject caster, int EffectID ) : void

Cast Confusion

Cast_VasKalCorp ( GameObject caster, int EffectID ) : void

Cast Armageddon

Cast_VasOrtGrav ( GameObject caster, int EffectID ) : void

Casts sheet lightning

Cast_VasPorYlem ( GameObject caster, int EffectID ) : void

Casts tremor

Cast_VasRelPor ( GameObject caster, int EffectID ) : void

Casts gate travel

Cast_WaterWalk ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void

Casts the water walk spell (generic)

Cast_YlemPor ( GameObject caster, int EffectID ) : void

Casts waterwalk

LaunchProjectile ( GameObject projectile, Ray ray, float dropRange, float force, float spread ) : void

Launchs the projectile.

LaunchProjectile ( GameObject projectile, float force ) : void

Launchs the projectile directly forward

LaunchProjectile ( GameObject projectile, float force, Vector3 direction ) : void

Launchs the projectile along the specified vector

OnGUI ( ) : void

Handles pressing Q to cast the current spell runes

SetSpellCost ( int SpellCircle ) : void

Sets the spell cost based on the circle of the spell x 3

SpellIncantationFailed ( GameObject caster ) : void

Spells incantation failure

TestSpell ( GameObject caster ) : void

Special spell for testing

TestSpellCast ( UWCharacter casterUW, int Rune1, int Rune2, int Rune3 ) : bool

Checks if the player can cast the spell.

TranslateSpellRune ( int Rune1, int Rune2, int Rune3 ) : string

Translates the spell runes

Update ( ) : void
castSpell ( GameObject caster, int Rune1, int Rune2, int Rune3, bool ready ) : void

Casts a magic spell based on the constructed magic rune string

castSpell ( GameObject caster, string MagicWords, bool ready ) : void

Casts the spell from the selected magic runes

Private Methods

Method Description
CastProjectile ( GameObject caster, GameObject target, SpellProp, spellprop ) : bool

Casts the projectile at the target

CastProjectile ( GameObject caster, SpellProp, spellprop ) : bool

Casts a magic projectile.

CastProjectile ( GameObject caster, Vector3 targetV, SpellProp, spellprop ) : bool

Casts the projectile along a vector

CheckActiveSpellEffect ( GameObject caster ) : int

Finds the first free spell effect slot for the caster.

CheckPassiveSpellEffectNPC ( GameObject caster ) : int

Finds the first free passive spell effect slot for an NPC.

CheckPassiveSpellEffectPC ( GameObject caster ) : int

Finds the first free passive spell effect slot for the player character.

CreateMagicProjectile ( Vector3 Location, GameObject Caster, SpellProp, spellprop ) : GameObject

Creates the magic projectile.

GetNPCTargetRandom ( GameObject caster, RaycastHit &hit ) : NPC,

Gets a Random NPC target

GetNPCTargetRandom ( GameObject caster, RaycastHit &hit, int isUndead ) : NPC,

Gets a random npc target

SetSpellEffect ( GameObject caster, SpellEffect, ActiveSpellArray, int index, int EffectID ) : SpellEffect,

Creates and sets the spell effect on the array passed

getRay ( GameObject caster ) : Ray

Gets a raycast from the player

Method Details

ApplySpellCost() public method

Deducts the spellcost from the players mana level
public ApplySpellCost ( ) : void
return void

CastEnchantment() public method

Casts the enchantment based on the spell rules, targets and ready state
public CastEnchantment ( GameObject caster, GameObject target, int EffectID, bool ready, int SpellRule ) : SpellEffect,
caster GameObject Caster.
target GameObject Target.
EffectID int Effect ID of the spell
ready bool If set to true ready.
SpellRule int Spell rule to apply.
return SpellEffect,

CastEnchantment() public method

Casts the enchantment that may need readying
public CastEnchantment ( GameObject caster, GameObject target, int EffectID, int SpellRule ) : SpellEffect,
caster GameObject Caster.
target GameObject Target.
EffectID int Effect ID of the spell
SpellRule int What spell rule is applicable
return SpellEffect,

CastEnchantmentImmediate() public method

Casts the enchantment immediately
public CastEnchantmentImmediate ( GameObject caster, GameObject target, int EffectID, int SpellRule ) : SpellEffect,
caster GameObject Caster.
target GameObject Target.
EffectID int Effect ID of the spell
SpellRule int What spell rule is applicable
return SpellEffect,

CastTheFrog() public method

Casts bullfrog spell
public CastTheFrog ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect ID of the spell
return void

Cast_AnCorpMani() public method

Casts smite undead
public Cast_AnCorpMani ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect ID of the spell
return void

Cast_AnExPor() public method

Casts Paralyze
public Cast_AnExPor ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect ID of the spell
return void

Cast_AnNox() public method

Casts Cure Poison
public Cast_AnNox ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect ID of the spell
return void

Cast_AnTym() public method

Casts Time Stop
public Cast_AnTym ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect ID of the spell
return void

Cast_Curse() public method

Casts curse (generic)
public Cast_Curse ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect ID of the spell
return void

Cast_CursedItem() public method

Casts the cursed item spell (generic)
public Cast_CursedItem ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void
caster GameObject Caster.
ActiveSpellArray SpellEffect, Active spell array.
EffectID int Effect ID of the spell
EffectSlot int Effect slot.
return void

Cast_DetectMonster() public method

Casts detect monster.
public Cast_DetectMonster ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect ID of the spell
return void

Cast_ExYlem() public method

Casts the magic open
public Cast_ExYlem ( GameObject caster, bool Ready, int EffectID ) : void
caster GameObject Caster.
Ready bool If set to true ready.
EffectID int Effect ID of the spell
return void

Cast_FlamHur() public method

Casts flame wind
public Cast_FlamHur ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect ID of the spell
return void

Cast_Flameproof() public method

Casts the flameproof. (generic)
public Cast_Flameproof ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void
caster GameObject Caster.
ActiveSpellArray SpellEffect, Active spell array.
EffectID int Effect ID of the spell
EffectSlot int Effect slot.
return void

Cast_FreezeTime() public method

Casts freeze time (generic)
public Cast_FreezeTime ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void
caster GameObject Caster.
ActiveSpellArray SpellEffect, Active spell array.
EffectID int Effect ID of the spell
EffectSlot int Effect slot.
return void

Cast_GravSanctPor() public method

Casts Missile Protection
public Cast_GravSanctPor ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect ID of the spell
return void

Cast_Hallucination() public method

Casts the hallucination effect
public Cast_Hallucination ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void
caster GameObject Caster.
ActiveSpellArray SpellEffect, Active spell array.
EffectID int Effect I.
EffectSlot int Effect slot.
return void

Cast_Heal() public method

Casts the heal spell (generic)
public Cast_Heal ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect ID of the spell
return void

Cast_InJux() public method

Casts rune of warding
public Cast_InJux ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect I.
return void

Cast_InManiRel() public method

Casts ally
public Cast_InManiRel ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect ID of the spell
return void

Cast_InManiYlem() public method

Casts Create Food
public Cast_InManiYlem ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect ID of the spell
return void

Cast_KalMani() public method

Create Summon Monster
public Cast_KalMani ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect ID of the spell
return void

Cast_Leap() public method

Casts the leap spell (generic)
public Cast_Leap ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void
caster GameObject Caster.
ActiveSpellArray SpellEffect, Active spell array.
EffectID int Effect ID of the spell
EffectSlot int Effect slot.
return void

Cast_Levitate() public method

Casts the levitate spels (generic)
public Cast_Levitate ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void
caster GameObject Caster.
ActiveSpellArray SpellEffect, Active spell array.
EffectID int Effect ID of the spell
EffectSlot int Effect slot.
return void

Cast_LevitateSpells() public method

Casts the levitate spells
public Cast_LevitateSpells ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect ID of the spell
return void

Cast_Light() public method

Casts the light spells (generic)
public Cast_Light ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void
caster GameObject Caster.
ActiveSpellArray SpellEffect, Active spell array.
EffectID int Effect ID of the spell
EffectSlot int Effect slot.
return void

Cast_LightSpells() public method

Casts the light spells (generic).
public Cast_LightSpells ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect ID of the spell
return void

Cast_Mana() public method

Casts the mana spells
public Cast_Mana ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect ID of the spell
return void

Cast_MazeNavigation() public method

Casts the maze navigation spell generic
public Cast_MazeNavigation ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void
caster GameObject Caster.
ActiveSpellArray SpellEffect, Active spell array.
EffectID int Effect ID of the spell
EffectSlot int Effect slot.
return void

Cast_NameEnchantment() public method

Casts name enchantment.
public Cast_NameEnchantment ( GameObject caster, bool Ready, int EffectID ) : void
caster GameObject Caster.
Ready bool If set to true ready.
EffectID int Effect ID of the spell
return void

Cast_NightVision() public method

Casts the night vision (generic)
public Cast_NightVision ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void
caster GameObject Caster.
ActiveSpellArray SpellEffect, Active spell array.
EffectID int Effect I.
EffectSlot int Effect slot.
return void

Cast_NoxYlem() public method

Casts poison other
public Cast_NoxYlem ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect ID of the spell
return void

Cast_OrtGrav() public method

Casts electric/lightning bolt.
public Cast_OrtGrav ( GameObject caster, bool Ready, int EffectID ) : void
caster GameObject Caster.
Ready bool If set to true ready.
EffectID int Effect ID of the spell
return void

Cast_OrtJux() public method

Casts Magic Arrow/Missile
public Cast_OrtJux ( GameObject caster, bool Ready, int EffectID ) : void
caster GameObject Caster.
Ready bool If set to true ready.
EffectID int Effect ID of the spell
return void

Cast_OrtPorWis() public method

Roaming Sight
public Cast_OrtPorWis ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect ID of the spell
return void

Cast_OrtPorYlem() public method

Casts telekinesis
public Cast_OrtPorYlem ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect ID of the spell
return void

Cast_Paralyze() public method

Casts the paralyze spells (generic)
public Cast_Paralyze ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void
caster GameObject Caster.
ActiveSpellArray SpellEffect, Active spell array.
EffectID int Effect ID of the spell
EffectSlot int Effect slot.
return void

Cast_Poison() public method

Casts the poison spells (generic)
public Cast_Poison ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void
caster GameObject Caster.
ActiveSpellArray SpellEffect, Active spell array.
EffectID int Effect ID of the spell
EffectSlot int Effect slot.
return void

Cast_PorFlam() public method

Casts the fireball spell
public Cast_PorFlam ( GameObject caster, bool Ready, int EffectID ) : void
caster GameObject Caster.
Ready bool If set to true ready.
EffectID int Effect ID of the spell
return void

Cast_QuasCorp() public method

Casts fear
public Cast_QuasCorp ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect ID of the spell
return void

Cast_RelDesPor() public method

Casts slowfall
public Cast_RelDesPor ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect ID of the spell
return void

Cast_RelTymPor() public method

Casts Speed
public Cast_RelTymPor ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect ID of the spell
return void

Cast_Resistance() public method

Casts the resistance spells (generic)
public Cast_Resistance ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void
caster GameObject Caster.
ActiveSpellArray SpellEffect, Active spell array.
EffectID int Effect ID of the spell
EffectSlot int Effect slot.
return void

Cast_ResistanceAgainstType() public method

Casts the resistance against type spells (generic)
public Cast_ResistanceAgainstType ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void
caster GameObject Caster.
ActiveSpellArray SpellEffect, Active spell array.
EffectID int Effect ID of the spell
EffectSlot int Effect slot.
return void

Cast_ResistanceSpells() public method

Casts the resistance spells.
public Cast_ResistanceSpells ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect ID of the spell
return void

Cast_RoamingSight() public method

Casts the roaming sight generic
public Cast_RoamingSight ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void
caster GameObject Caster.
ActiveSpellArray SpellEffect, Active spell array.
EffectID int Effect ID of the spell
EffectSlot int Effect slot.
return void

Cast_RuneOfWarding() public method

Casts the rune of warding (generic)
public Cast_RuneOfWarding ( Vector3 pos, int EffectID ) : void
pos Vector3 Position.
EffectID int Effect ID of the spell
return void

Cast_SanctFlam() public method

Casts flame proof
public Cast_SanctFlam ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect I.
return void

Cast_SanctJux() public method

Cast Strengthen Door
public Cast_SanctJux ( GameObject caster, bool Ready, int EffectID ) : void
caster GameObject Caster.
Ready bool If set to true ready.
EffectID int Effect ID of the spell
return void

Cast_SlowFall() public method

Casts the slow fall. generic
public Cast_SlowFall ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void
caster GameObject Caster.
ActiveSpellArray SpellEffect, Active spell array.
EffectID int Effect ID of the spell
EffectSlot int Effect slot.
return void

Cast_Speed() public method

Casts the speed spells generic
public Cast_Speed ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void
caster GameObject Caster.
ActiveSpellArray SpellEffect, Active spell array.
EffectID int Effect ID of the spell
EffectSlot int Effect slot.
return void

Cast_Stealth() public method

Casts the stealth spells (generic)
public Cast_Stealth ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void
caster GameObject Caster.
ActiveSpellArray SpellEffect, Active spell array.
EffectID int Effect ID of the spell
EffectSlot int Effect slot.
return void

Cast_StealthSpells() public method

Casts the stealth spells.
public Cast_StealthSpells ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect ID of the spell
return void

Cast_Telekinesis() public method

Casts the telekinesis spell generic
public Cast_Telekinesis ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void
caster GameObject Caster.
ActiveSpellArray SpellEffect, Active spell array.
EffectID int Effect ID of the spell
EffectSlot int Effect slot.
return void

Cast_UusPor() public method

Cast Leap/Jump
public Cast_UusPor ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect ID of the spell
return void

Cast_VasAnWis() public method

Cast Confusion
public Cast_VasAnWis ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect ID of the spell
return void

Cast_VasKalCorp() public method

Cast Armageddon
public Cast_VasKalCorp ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect ID of the spell
return void

Cast_VasOrtGrav() public method

Casts sheet lightning
public Cast_VasOrtGrav ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect ID of the spell
return void

Cast_VasPorYlem() public method

Casts tremor
public Cast_VasPorYlem ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect ID of the spell
return void

Cast_VasRelPor() public method

Casts gate travel
public Cast_VasRelPor ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect ID of the spell
return void

Cast_WaterWalk() public method

Casts the water walk spell (generic)
public Cast_WaterWalk ( GameObject caster, SpellEffect, ActiveSpellArray, int EffectID, int EffectSlot ) : void
caster GameObject Caster.
ActiveSpellArray SpellEffect, Active spell array.
EffectID int Effect ID of the spell
EffectSlot int Effect slot.
return void

Cast_YlemPor() public method

Casts waterwalk
public Cast_YlemPor ( GameObject caster, int EffectID ) : void
caster GameObject Caster.
EffectID int Effect ID of the spell
return void

LaunchProjectile() public method

Launchs the projectile.
public LaunchProjectile ( GameObject projectile, Ray ray, float dropRange, float force, float spread ) : void
projectile GameObject Projectile.
ray Ray Ray.
dropRange float How far away from the caster to launch
force float Force of the projectile
spread float Spread radius
return void

LaunchProjectile() public method

Launchs the projectile directly forward
public LaunchProjectile ( GameObject projectile, float force ) : void
projectile GameObject Projectile.
force float Force to apply to the projectile
return void

LaunchProjectile() public method

Launchs the projectile along the specified vector
public LaunchProjectile ( GameObject projectile, float force, Vector3 direction ) : void
projectile GameObject Projectile.
force float Force.
direction Vector3 Direction to launch the projectile in
return void

OnGUI() public method

Handles pressing Q to cast the current spell runes
public OnGUI ( ) : void
return void

SetSpellCost() public method

Sets the spell cost based on the circle of the spell x 3
public SetSpellCost ( int SpellCircle ) : void
SpellCircle int Spell circle.
return void

SpellIncantationFailed() public method

Spells incantation failure
public SpellIncantationFailed ( GameObject caster ) : void
caster GameObject Caster.
return void

TestSpell() public method

Special spell for testing
public TestSpell ( GameObject caster ) : void
caster GameObject Caster.
return void

TestSpellCast() public method

Checks if the player can cast the spell.
public TestSpellCast ( UWCharacter casterUW, int Rune1, int Rune2, int Rune3 ) : bool
casterUW UWCharacter The player character casting the spell
Rune1 int Rune1.
Rune2 int Rune2.
Rune3 int Rune3.
return bool

TranslateSpellRune() public method

Translates the spell runes
public TranslateSpellRune ( int Rune1, int Rune2, int Rune3 ) : string
Rune1 int Rune1.
Rune2 int Rune2.
Rune3 int Rune3.
return string

Update() public method

public Update ( ) : void
return void

castSpell() public method

Casts a magic spell based on the constructed magic rune string
public castSpell ( GameObject caster, int Rune1, int Rune2, int Rune3, bool ready ) : void
caster GameObject Caster.
Rune1 int Rune1.
Rune2 int Rune2.
Rune3 int Rune3.
ready bool
return void

castSpell() public method

Casts the spell from the selected magic runes
public castSpell ( GameObject caster, string MagicWords, bool ready ) : void
caster GameObject Caster.
MagicWords string Magic words.
ready bool If set to true then the spell is being readied (for targetted spells), false for immediate cast
return void

Property Details

ActiveRunes public_oe property

public int[] ActiveRunes
return int[]

CurMana public_oe property

public int CurMana
return int

InfiniteMana public_oe property

public bool InfiniteMana
return bool

InventorySpell public_oe property

public bool InventorySpell
return bool

MaxMana public_oe property

public int MaxMana
return int

ObjectInSlot public_oe property

public GameObject ObjectInSlot
return GameObject

PlayerRunes public_oe property

public bool[] PlayerRunes
return bool[]

ReadiedSpell public_oe property

public string ReadiedSpell
return string

SpellCost public_oe property

public int SpellCost
return int

SummonCount public_oe property

public long SummonCount
return long

playerUW public_oe static_oe property

public static UWCharacter playerUW
return UWCharacter