Example #1
0
        public static void CreateRadially(string missileId, Vector3 start, Character originator, int missileCount)
        {
            var missileInfo = MissileInfo.Find(missileId);

            if (missileInfo == null)
            {
                Debug.LogWarning("missile not found: " + missileId);
            }

            CreateRadially(missileInfo, start, originator, missileCount);
        }
Example #2
0
        public static Missile Create(string missileId, Vector3 start, Vector3 target, Character originator)
        {
            var missileInfo = MissileInfo.Find(missileId);

            if (missileInfo == null)
            {
                Debug.LogWarning("missile not found: " + missileId);
                return(null);
            }

            return(Create(missileInfo, start, target, originator));
        }
Example #3
0
    private static void LoadWeaponInfo()
    {
        foreach (var item in weaponSheet)
        {
            if (item._code == null)
            {
                continue;
            }

            item.hitClass    = WeaponHitClass.Find(item._hitClass);
            item.missileType = MissileInfo.Find(item.missileTypeId);

            item.code           = item._code;
            item.cost           = item._cost;
            item.gambleCost     = item._gambleCost;
            item.flippyFile     = item._flippyFile;
            item.invFile        = item._invFile;
            item.invWidth       = item._invWidth;
            item.invHeight      = item._invHeight;
            item.level          = item._level;
            item.levelReq       = item._levelReq;
            item.weapon         = item;
            item.name           = Translation.Find(item.nameStr);
            item.type1Code      = item._type1;
            item.type2Code      = item._type2;
            item.component      = item._component;
            item.alternateGfx   = item._alternateGfx;
            item.dropSound      = SoundInfo.Find(item._dropSound);
            item.dropSoundFrame = item._dropSoundFrame;
            item.useSound       = SoundInfo.Find(item._useSound);
            item.alwaysUnique   = item._alwaysUnique;
            item.normCode       = item._normCode;
            item.uberCode       = item._uberCode;
            item.ultraCode      = item._ultraCode;

            if (!byCode.ContainsKey(item.code))
            {
                byCode.Add(item.code, item);
            }
        }
    }