Example #1
0
        // Function from file: window.dm
        public Obj_Structure_Window(dynamic Loc = null, bool?re = null) : base((object)(Loc))
        {
            re = re ?? false;

            Obj_Item_Stack_Rods R = null;

            // Warning: Super call was HERE! If anything above HERE is needed by the super call, it might break!;
            this.health = this.maxhealth;

            if (re == true)
            {
                this.reinf = re;
            }

            if (this.reinf == true)
            {
                this.state = this.anchored * 2;
            }
            Task13.Schedule(5, (Task13.Closure)(() => {
                if (!Lang13.Bool(this.flags & 128))
                {
                    this.storeditems.Add(new Obj_Item_Weapon_Shard(this));

                    if (this.fulltile)
                    {
                        this.storeditems.Add(new Obj_Item_Weapon_Shard(this));
                    }

                    if (this.reinf == true)
                    {
                        R = new Obj_Item_Stack_Rods(this);
                        this.storeditems.Add(R);

                        if (this.fulltile)
                        {
                            R.add(1);
                        }
                    }
                }
                return;
            }));
            this.ini_dir = this.dir;
            this.air_update_turf(true);
            return;
        }