public static void CreatePricedHealer(int price, int x, int y) { PricedHealer healer = new PricedHealer(price); healer.MoveToWorld(new Point3D(x, y, -1), Map.Malas); healer.Home = healer.Location; healer.RangeHome = 5; }
public static void CreatePricedHealer(int price, int x, int y) { var loc = new Point3D(x, y, -1); var map = Map.Malas; if (!MythikStaticValues.UpdateLoc(ref loc, ref map)) { return; } PricedHealer healer = new PricedHealer(price); healer.MoveToWorld(loc, map); healer.Home = healer.Location; healer.RangeHome = 5; }
public static void CreatePricedHealer(int price, int x, int y) { var p = new Point3D(x, y, -1); PricedHealer healer; if (FindObject(Map.Malas, p, 10, out healer)) { healer.Delete(); } healer = new PricedHealer(price); healer.MoveToWorld(p, Map.Malas); healer.Home = p; healer.RangeHome = 5; WeakEntityCollection.Add("doom", healer); }