Jump to content

ReplaceOnRotten Not Working


Hydromancerx

Recommended Posts

So the ReplaceOnRotten function that turns ice cream into melted ice cream i wanted to apply to my pigs. The pigs would turn into dead pigs when they reach the rotting point. And i would use a recipe to feed the pigs to counter the rotting.

item HCPigmale
    {
    	HungerChange            =    -1,
    	Weight                	=    6,
        DaysFresh            	=    1,
        DaysTotallyRotten       =    1,
    	Type                	=    Food,
    	DisplayName            	=    Pig (Male),
    	Icon                	=    HCPigmale,
        Carbohydrates           =     0,
        Proteins             	=     0,
        Lipids                 	=     0,
        Calories             	=     0,
        ReplaceOnRotten         =     HCPigdead,
    	ResizeWorldIcon         =     2.0,
    }

item HCPigdead
    {
    	HungerChange            =    -1,
        Weight                	=    10,
        Type                	=    Food,
        DangerousUncooked       =    TRUE,
        DaysTotallyRotten       =    12,
        DaysFresh            	=    8,
    	Weight                 	=     6,
    	DisplayName             =     Dead Pig,
    	Icon                	=    HCPigdead,
    	FoodType                =       Meat,
   	 Carbohydrates           =     0,
        Proteins             	=     840,
        Lipids                 	=     2100,
        Calories             	=     22560,
   	ResizeWorldIcon         =     2.0,
    }

However when i test it I get no Dead Pig instead i get a Rotten Living Pig. What did I do wrong? How do i get it to transform into a Dead Pig item?

Edited by Hydromancerx
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...