[Fixt] [Public source code] why is bark skin under skin tone unlocked

Discussion in 'Fixed' started by SeriousBlueJewel, Jun 12, 2020.

Thread Status:
Not open for further replies.
  1. SeriousBlueJewel

    SeriousBlueJewel Well-Known Member

    Joined:
    Nov 5, 2018
    Bark skin uses scalecolor to determine color. Yet it somehow blocks skin tone from changing? Maybe it was intended for the scaleColorUnlocked function?

    all code is from creature.as
    Code:
            public function skinToneUnlocked(newSkinTone:String):Boolean
            {
                if (hasStatusEffect("Gel Body")) return false;
                if (InCollection(skinType, [GLOBAL.SKIN_TYPE_PLANT, GLOBAL.SKIN_TYPE_BARK])) return false;
                return true;
            }
    

    Code:
            public function skinFurScalesColor():String
            {
                if(armor is Omnisuit) return "black";
                else if(skinType == GLOBAL.SKIN_TYPE_FUR || skinType == GLOBAL.SKIN_TYPE_FEATHERS) return furColor;
                else if(skinType == GLOBAL.SKIN_TYPE_SCALES || skinType == GLOBAL.SKIN_TYPE_CHITIN || skinType == GLOBAL.SKIN_TYPE_BARK) return scaleColor;
                return skinTone;
            }
    
     
  2. Jacques00

    Jacques00 Well-Known Member
    Moderator

    Joined:
    Aug 26, 2015
    Fixed for the next release.
     
Thread Status:
Not open for further replies.