public static void ProcessLand(Game g, Player p, CellInf cell) { if (cell.Owner == null) { g.ToCanBuy(); } else if (cell.Owner != p.Id) { if (cell.IsMortgage) { g.Tlogp("ProcessLand.CellIsMortgaged", "земля {0} заложена", "land {0} is mortgaged ", cell.Name); g.FinishStep("cell_mortgaged"); } else { //pay rent g.PayToUserId = cell.Owner.Value; g.ToPay(cell.Rent); } } else if (cell.Owner == p.Id) { g.Tlogp("ProcessLand.MyCell", "ваше поле {0}", "your cell {0} ", cell.Name); g.FinishStep("mycell"); } }