Ejemplo n.º 1
0
        public override void Effect(Pawn target)
        {
            base.Effect(target);
            VampireUtility.SummonEffect(target.PositionHeld, CasterPawn.Map, CasterPawn, 2f);

            HealthUtility.AdjustSeverity(target, VampDefOf.ROMV_NightwispRavens, 1.0f);
        }
 public virtual void Effect()
 {
     //target.Drawer.Notify_DebugAffected();
     MoteMaker.ThrowText(CasterPawn.DrawPos, CasterPawn.Map, AbilityUser.StringsToTranslate.AU_CastSuccess);
     if (TargetsAoE[0] is LocalTargetInfo t && t.Cell != default(IntVec3))
     {
         PawnTemporary p = (PawnTemporary)PawnGenerator.GeneratePawn(VampDefOf.ROMV_WolfSpectral, Faction.OfPlayer);
         VampireUtility.SummonEffect(t.Cell, CasterPawn.Map, CasterPawn, 2f);
         GenSpawn.Spawn(p, t.Cell, CasterPawn.Map);
     }
 }
        public override void Effect(Pawn target)
        {
            base.Effect(target);

            int     count = new IntRange(15, 25).RandomInRange;
            IntVec3 loc;

            if (RCellFinder.TryFindRandomPawnEntryCell(out loc, target.Map, CellFinder.EdgeRoadChance_Animal))
            {
                VampireUtility.SummonEffect(loc, CasterPawn.Map, CasterPawn, 10f);

                for (int i = 0; i < count; i++)
                {
                    target.Map.wildAnimalSpawner.SpawnRandomWildAnimalAt(loc);
                }
            }
            Find.LetterStack.ReceiveLetter("ROMV_AnimalHerd".Translate(), "ROMV_AnimalHerdDesc".Translate(), LetterDefOf.PositiveEvent, new RimWorld.Planet.GlobalTargetInfo(loc, target.Map));
        }