// Function from file: praetorian.dm public override bool fire(Mob user = null) { Mob_Living_Carbon_Alien_Humanoid_Royal_Queen new_xeno = null; if (!GlobalFuncs.alien_type_present(typeof(Mob_Living_Carbon_Alien_Humanoid_Royal_Queen))) { new_xeno = new Mob_Living_Carbon_Alien_Humanoid_Royal_Queen(user.loc); ((Mob_Living_Carbon_Alien)user).alien_evolve(new_xeno); return(true); } else { user.WriteMsg("<span class='notice'>We already have an alive queen.</span>"); return(false); } }
// Function from file: queen.dm public Mob_Living_Carbon_Alien_Humanoid_Royal_Queen(dynamic loc = null) : base((object)(loc)) { Mob_Living_Carbon_Alien_Humanoid_Royal_Queen Q = null; foreach (dynamic _a in Lang13.Enumerate(GlobalVars.living_mob_list, typeof(Mob_Living_Carbon_Alien_Humanoid_Royal_Queen))) { Q = _a; if (Q == this) { continue; } if (Q.stat == 2) { continue; } if (Q.client != null) { this.name = "alien princess (" + Rand13.Int(1, 999) + ")"; break; } } this.real_name = this.name; this.internal_organs.Add(new Obj_Item_Organ_Internal_Alien_Plasmavessel_Large_Queen()); this.internal_organs.Add(new Obj_Item_Organ_Internal_Alien_Resinspinner()); this.internal_organs.Add(new Obj_Item_Organ_Internal_Alien_Acid()); this.internal_organs.Add(new Obj_Item_Organ_Internal_Alien_Neurotoxin()); this.internal_organs.Add(new Obj_Item_Organ_Internal_Alien_Eggsac()); this.AddSpell(new Obj_Effect_ProcHolder_Spell_AoeTurf_Repulse_Xeno(this)); this.AddAbility(new Obj_Effect_ProcHolder_Alien_Royal_Queen_Promote()); // Warning: Super call was HERE! If anything above HERE is needed by the super call, it might break!; return; }