Exemple #1
0
        protected override void DemolishAlert()
        {
            if (ParentHouse == null || RentalMaster == null || c_RentalClient == null)
            {
                return;
            }

            RentalMaster.SendMessage("You have begun to use lockdowns reserved for {0}, and their rental unit will collapse in {1}.", c_RentalClient.Name, Math.Round((DemolishTime - DateTime.Now).TotalHours, 2));
            c_RentalClient.SendMessage("Alert your land lord, {0}, they are using storage reserved for you.  They have violated the rental agreement, which will end in {1} if nothing is done.", RentalMaster.Name, Math.Round((DemolishTime - DateTime.Now).TotalHours, 2));
        }
Exemple #2
0
        protected override void OnRentPaid()
        {
            if (RentalMaster == null || c_RentalClient == null)
            {
                return;
            }

            if (Free)
            {
                return;
            }

            RentalMaster.BankBox.DropItem(new Gold(Price));
            RentalMaster.SendMessage("The bank has transfered your rent from {0}.", c_RentalClient.Name);
        }
Exemple #3
0
        public override void Delete()
        {
            if (ParentHouse == null)
            {
                base.Delete();
                return;
            }

            if (!Owned && !ParentHouse.IsFriend(c_RentalClient))
            {
                if (c_RentalClient != null && RentalMaster != null)
                {
                    RentalMaster.SendMessage("{0} has ended your rental agreement.  Because you revoked their access, their last payment will be refunded.", RentalMaster.Name);
                    c_RentalClient.SendMessage("You have ended your rental agreement with {0}.  Because your access was revoked, your last payment is refunded.", c_RentalClient.Name);
                }

                DepositTo(c_RentalClient);
            }
            else if (Owned)
            {
                if (c_RentalClient != null && RentalMaster != null)
                {
                    c_RentalClient.SendMessage("{0} has ended your rental agreement.  Since they broke the contract, your are refunded the last payment.", RentalMaster.Name);
                    RentalMaster.SendMessage("You have ended your rental agreement with {0}.  They will be refunded their last payment.", c_RentalClient.Name);
                }

                DepositTo(c_RentalClient);

                PackUpHouse();
            }
            else
            {
                if (c_RentalClient != null && RentalMaster != null)
                {
                    RentalMaster.SendMessage("{0} has ended your rental agreement.", c_RentalClient.Name);
                    c_RentalClient.SendMessage("You have ended your rental agreement with {0}.", RentalMaster.Name);
                }

                DepositTo(RentalMaster);
            }

            ClearRentTimer();
            base.Delete();
        }