예제 #1
0
        public static void Init()
        {
            ItemTier Hbtier = ItemTier.Lunar;

            if (Hbdbt.Value == false)
            {
                Hbtier = ItemTier.Tier3;
            }
            AddTokens();
            HerPanic                   = ScriptableObject.CreateInstance <ItemDef>();
            HerPanic.name              = "HERPANIC";
            HerPanic.nameToken         = "Her Panic";
            HerPanic.pickupToken       = HERPANIC_PICKUP;
            HerPanic.descriptionToken  = HERPANIC_DESC;
            HerPanic.loreToken         = HERPANIC_LORE;
            HerPanic.tier              = Hbtier;
            HerPanic.pickupIconSprite  = Her_Burden.bundle.LoadAsset <Sprite>(Hbiiv.Value + "violetItemIcon");
            HerPanic.pickupModelPrefab = Her_Burden.bundle.LoadAsset <GameObject>(Hbiiv.Value + "violether_burden");
            HerPanic.canRemove         = true;
            HerPanic.hidden            = false;

            var rules = new Items.CharacterItemDisplayRuleSet();

            AddLocation(rules);
            Items.Add(HerPanic, rules);
        }
예제 #2
0
        public static void Init()
        {
            ItemTier Hbtier = ItemTier.Lunar;

            if (Hbdbt.Value == false)
            {
                Hbtier = ItemTier.Tier3;
            }
            AddTokens();
            HerRecluse                   = ScriptableObject.CreateInstance <ItemDef>();
            HerRecluse.name              = "HERRECLUSE";
            HerRecluse.nameToken         = "Her Recluse";
            HerRecluse.pickupToken       = HERRECLUSE_PICKUP;
            HerRecluse.descriptionToken  = HERRECLUSE_DESC;
            HerRecluse.loreToken         = HERRECLUSE_LORE;
            HerRecluse.tier              = Hbtier;
            HerRecluse.pickupIconSprite  = Her_Burden.bundle.LoadAsset <Sprite>(Hbiiv.Value + "lightishblueItemIcon");
            HerRecluse.pickupModelPrefab = Her_Burden.bundle.LoadAsset <GameObject>(Hbiiv.Value + "lightishblueher_burden");
            HerRecluse.canRemove         = true;
            HerRecluse.hidden            = false;

            var rules = new Items.CharacterItemDisplayRuleSet();

            AddLocation(rules);
            Items.Add(HerRecluse, rules);
        }
예제 #3
0
 public static void AddLocation(Items.CharacterItemDisplayRuleSet rules)
 {
     if (!Hbisos.Value)
     {
         GameObject followerPrefab = Her_Burden.bundle.LoadAsset <GameObject>(Hbiiv.Value + "violether_burden");
         followerPrefab.AddComponent <FakePanicPrefabSizeScript>();
         Vector3 generalScale = new Vector3(.0125f, .0125f, .0125f);
         _ = new ItemDisplayRule[]
         {
             new ItemDisplayRule
             {
                 ruleType       = ItemDisplayRuleType.ParentedPrefab,
                 followerPrefab = followerPrefab,
                 childName      = "Pelvis",
                 localPos       = new Vector3(0f, 0.1f, 0.1f),
                 localAngles    = new Vector3(180f, -0.05f, 0f),
                 localScale     = generalScale
             }
         };
     }
     if (Hbisos.Value)
     {
         GameObject followerPrefab = Her_Burden.bundle.LoadAsset <GameObject>(Hbiiv.Value + "violether_burden");
         if (Hbvos.Value == "Panic")
         {
             followerPrefab.AddComponent <PrefabSizeScript>();
         }
         if (Hbvos.Value != "Panic")
         {
             followerPrefab.AddComponent <FakePanicPrefabSizeScript>();
         }
         Vector3 generalScale = new Vector3(.0125f, .0125f, .0125f);
         rules.AddCharacterModelRule(new ItemDisplayRule
         {
             ruleType       = ItemDisplayRuleType.ParentedPrefab,
             followerPrefab = followerPrefab,
             childName      = "Pelvis",
             localPos       = new Vector3(0f, 0.1f, 0.1f),
             localAngles    = new Vector3(180f, -0.05f, 0f),
             localScale     = generalScale
         }, "mdlCommandoDualies"
                                     );
         rules.AddCharacterModelRule(new ItemDisplayRule
         {
             ruleType       = ItemDisplayRuleType.ParentedPrefab,
             followerPrefab = followerPrefab,
             childName      = "Pelvis",
             localPos       = new Vector3(0f, 0.1f, 0.1f),
             localAngles    = new Vector3(180f, -0.05f, 0f),
             localScale     = generalScale
         }, "mdlHuntress"
                                     );
         rules.AddCharacterModelRule(new ItemDisplayRule
         {
             ruleType       = ItemDisplayRuleType.ParentedPrefab,
             followerPrefab = followerPrefab,
             childName      = "LowerArmR",
             localPos       = new Vector3(0f, 5.5f, 0f),
             localAngles    = new Vector3(45f, -90f, 0f),
             localScale     = generalScale * 10
         }, "mdlToolbot"
                                     );
         rules.AddCharacterModelRule(new ItemDisplayRule
         {
             ruleType       = ItemDisplayRuleType.ParentedPrefab,
             followerPrefab = followerPrefab,
             childName      = "Pelvis",
             localPos       = new Vector3(0f, 0.1f, 0.1f),
             localAngles    = new Vector3(180f, -0.05f, 0f),
             localScale     = generalScale
         }, "mdlEngi"
                                     );
         rules.AddCharacterModelRule(new ItemDisplayRule
         {
             ruleType       = ItemDisplayRuleType.ParentedPrefab,
             followerPrefab = followerPrefab,
             childName      = "Pelvis",
             localPos       = new Vector3(0f, 0.1f, 0.1f),
             localAngles    = new Vector3(180f, -0.05f, 0f),
             localScale     = generalScale
         }, "mdlMage"
                                     );
         rules.AddCharacterModelRule(new ItemDisplayRule
         {
             ruleType       = ItemDisplayRuleType.ParentedPrefab,
             followerPrefab = followerPrefab,
             childName      = "Pelvis",
             localPos       = new Vector3(0f, 0.25f, 0.05f),
             localAngles    = new Vector3(180f, -0.05f, 0f),
             localScale     = generalScale
         }, "mdlMerc"
                                     );
         rules.AddCharacterModelRule(new ItemDisplayRule
         {
             ruleType       = ItemDisplayRuleType.ParentedPrefab,
             followerPrefab = followerPrefab,
             childName      = "WeaponPlatform",
             localPos       = new Vector3(0.2f, 0.05f, 0.2f),
             localAngles    = new Vector3(-45f, 0f, 0f),
             localScale     = generalScale * 2
         }, "mdlTreebot"
                                     );
         rules.AddCharacterModelRule(new ItemDisplayRule
         {
             ruleType       = ItemDisplayRuleType.ParentedPrefab,
             followerPrefab = followerPrefab,
             childName      = "Pelvis",
             localPos       = new Vector3(0f, 0.2f, 0.2f),
             localAngles    = new Vector3(180f, -0.05f, 0f),
             localScale     = generalScale
         }, "mdlLoader"
                                     );
         rules.AddCharacterModelRule(new ItemDisplayRule
         {
             ruleType       = ItemDisplayRuleType.ParentedPrefab,
             followerPrefab = followerPrefab,
             childName      = "Hip",
             localPos       = new Vector3(0f, 3.5f, 0f),
             localAngles    = new Vector3(135f, -0.05f, 0f),
             localScale     = generalScale * 10
         }, "mdlCroco"
                                     );
         rules.AddCharacterModelRule(new ItemDisplayRule
         {
             ruleType       = ItemDisplayRuleType.ParentedPrefab,
             followerPrefab = followerPrefab,
             childName      = "Pelvis",
             localPos       = new Vector3(0f, 0.1f, 0.1f),
             localAngles    = new Vector3(180f, -0.05f, 0f),
             localScale     = generalScale
         }, "mdlCaptain"
                                     );
         rules.AddCharacterModelRule(new ItemDisplayRule
         {
             ruleType       = ItemDisplayRuleType.ParentedPrefab,
             followerPrefab = followerPrefab,
             childName      = "Pelvis",
             localPos       = new Vector3(0f, 0.1f, 0.1f),
             localAngles    = new Vector3(180f, -0.05f, 0f),
             localScale     = generalScale
         }, "mdlBandit2"
                                     );
         rules.AddCharacterModelRule(new ItemDisplayRule
         {
             ruleType       = ItemDisplayRuleType.ParentedPrefab,
             followerPrefab = followerPrefab,
             childName      = "Pelvis",
             localPos       = new Vector3(.3f, -.15f, 0f),
             localAngles    = new Vector3(20f, -120f, -36f),
             localScale     = generalScale
         }, "mdlHeretic"
                                     );
     }
 }