Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - want_some

#1
Hello, i am working on updating (somewhat) inactive mod from A7 to A8 and im having some trouble with the dll file.

While going through the code to look for needed updates/changes, i have noticed that there is at least one reference issues (so far)

The following is part of the code with the issue:



namespace TTM
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using UnityEngine;
    using RimWorld;
    using Verse;

    public class PlacementRestricter_OnSand : PlacementRestricter
    {
        public override AcceptanceReport CanPlaceWithRestriction(EntityDef checkingDef, IntVec3 loc, IntRot rot)
        {
            Thing thing = Find.ThingGrid.ThingAt(loc, EntityType.SteamGeyser);
            if (Find.TerrainGrid.TerrainAt(loc).defName != TerrainDef.Named("Sand").ToString())
            {
                return "DesertFilm can only be placed on Sand Terrain.";
            }
            return true;
        }
    }
}


The issue i'm having is with "PlacementRestricter"
It seems that there is no reference to this anywhere in Verse like it did in A7. Was this removed or replaced with something else?

Thanks for the help!