Slime rancher golden slime

broken image
broken image

SlimeDefinitions.GetSlimeByIdentifiableId SlimeDefinition pinkSlimeDefinition = (Identifiable.Id.PINK_SLIME) I wasn't kidding by warning it would be a huge code, let's analyze the whole: First Line like I said, this is mostly just defining stuff. the name of the slime, and finally its identifiable.id. favorite toys is obvious, just the favorite toys. I set CanLargoify to false because I'm not making largos at the moment. the diet has a few components, what the slime produces, the foodgroups that it eats, the additional foods it can eat outside of the foodgroup, and its favorite foods. then we just go through, we set appearancesdefault to a new list, this will be important later.

broken image

the first time we'll need this is directly after, where we're cloning it to be the definition of our first slime.

broken image

> this code starts with just getting the pink slime's definition, we'll need this a few times. AppearancesDefault = new SlimeAppearance slimeDefinition. DeepCopyObject ( pinkSlimeDefinition ) slimeDefinition.

broken image

PINK_SLIME ) SlimeDefinition slimeDefinition = ( SlimeDefinition ) PrefabUtils. SlimeDefinition pinkSlimeDefinition = SRSingleton.