Exemple #1
0
 public void CreateCaster()
 {
     dummyCaster = new DummyCaster(man.Pawn, this);
     dummyCaster.Tick();
     dummyCaster.SpawnSetup(man.Pawn.Map, false);
     Verb.caster = dummyCaster;
 }
Exemple #2
0
 public TurretVerb(Verb verb, VerbSource source, AdditionalVerbProps props, VerbManager man) : base(verb, source,
                                                                                                    props, man)
 {
     dummyCaster = new DummyCaster(man.Pawn, this);
     dummyCaster.Tick();
     dummyCaster.SpawnSetup(man.Pawn.Map, false);
     verb.caster = dummyCaster;
     verb.castCompleteCallback = () => cooldownTicksLeft = Verb.verbProps.AdjustedCooldownTicks(Verb, man.Pawn);
 }
Exemple #3
0
        public void DestroyCaster()
        {
            if (dummyCaster != null)
            {
                if (!dummyCaster.Destroyed)
                {
                    dummyCaster.Destroy();
                }
                dummyCaster = null;
            }

            Verb.caster = man.Pawn;
        }