[#bugs] Glowcrust infection is not growing any Luminous Hoarshrooms on the icy outcrops

Issue #6552 resolved
Freehold Games Bot Account created an issue

Marked for crossposting by: Ashe-No-Longer, Legendary Seeker

Message (jump):

<Flooremoji> Glowcrust infection is not growing any Luminous Hoarshrooms on the icy outcrops

Comments (3)

  1. Noelle Lavenza

    Before 203.36, SlotList restrictions would not be respected if a body part was passed directly to CommandEquipObject, e.g. via calling bodyPart.Equip; now, it is respected, so it can't be equipped without the Forced flag or a QueryEquippableListEvent override. By adding a part with the following code to the Hoarshroom blueprint, it will equip properly. However, it will still fail to equip when stuck in tar/asphalt due to lacking the SemiForced flag; see #6553.

    namespace XRL.World.Parts
    {
        public class HoarshroomEquip : IPart
        {
            public override bool WantEvent(int ID, int cascade)
            {
                if (ID == QueryEquippableListEvent.ID)
                {
                    return true;
                }
                return base.WantEvent(ID, cascade);
            }
            public override bool HandleEvent(QueryEquippableListEvent E)
            {
                if (!E.List.Contains(ParentObject) && E.SlotType == "Icy Outcrop")
                {
                    E.List.Add(ParentObject);
                }
                return base.HandleEvent(E);
            }
        }
    }
    

    This part could be skipped in favor of using the Forced flag rather than SemiForced, but I feel like that might have unintended side effects.

  2. Log in to comment