Exemple #1
0
 private static Actor returnTrackedActor(TempleEye self)
 {
     if (new DynData <TempleEye>(self).Get <bool>("followMadeline"))
     {
         return(self.Scene.Tracker.GetEntity <Player>());
     }
     return(self.Scene.Tracker.GetEntity <TheoCrystal>());
 }
Exemple #2
0
	public bool AddEye(TempleEye eye) {		
		if (_eyes.Count < EyesRequired) {
			_eyes.Add(eye);	
			if (_cling != null)
				_cling.Play();
					
		} else {
			return false;
		}
		
		if (_eyes.Count >= EyesRequired) {	
			if (!_activated) { 
				_activated = true;
				Explode();
				if (Activated != null) {
					Activated.Invoke();
				}	
			}
		}
		
		return true;
	}
Exemple #3
0
        // ================ Temple eye handling ================

        private static void modTempleEyeConstructor(On.Celeste.TempleEye.orig_ctor orig, TempleEye self, EntityData data, Vector2 offset)
        {
            orig(self, data, offset);
            new DynData <TempleEye>(self)["followMadeline"] = data.Bool("followMadeline");
        }