Ejemplo n.º 1
0
        public override string GetExplanation()
        {
            Map            map            = this.BadMap();
            int            value          = JoyUtility.JoyKindsOnMapCount(map);
            string         label          = map.info.parent.Label;
            ExpectationDef expectationDef = ExpectationsUtility.CurrentExpectationFor(map);
            int            joyKindsNeeded = expectationDef.joyKindsNeeded;
            string         value2         = "AvailableRecreationTypes".Translate() + ":\n\n" + JoyUtility.JoyKindsOnMapString(map);
            string         value3         = "MissingRecreationTypes".Translate() + ":\n\n" + JoyUtility.JoyKindsNotOnMapString(map);

            return("NeedJoySourceDesc".Translate(value, label, expectationDef.label, joyKindsNeeded, value2, value3));
        }
Ejemplo n.º 2
0
        private bool NeedJoySource(Map map)
        {
            if (!map.IsPlayerHome)
            {
                return(false);
            }
            if (!map.mapPawns.AnyColonistSpawned)
            {
                return(false);
            }
            int num            = JoyUtility.JoyKindsOnMapCount(map);
            int joyKindsNeeded = ExpectationsUtility.CurrentExpectationFor(map).joyKindsNeeded;

            return(num < joyKindsNeeded);
        }