Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Commit

Permalink
Changed AnimalStatExtension so it can display item / building images too
Browse files Browse the repository at this point in the history
  • Loading branch information
juanosarg committed Jun 4, 2021
1 parent f3b9a79 commit d4e4b15
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Binary file modified 1.2/Assemblies/VFECore.dll
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@ public static class VanillaExpandedFramework_Dialog_InfoCard_FillCard_Patch

public static bool Prefix(Rect cardRect, Dialog_InfoCard __instance, Thing ___thing, Dialog_InfoCard.InfoCardTab ___tab)
{
Pawn pawn = ___thing as Pawn;
Thing thing = ___thing as Thing;
rect = cardRect;
bool result;

if (pawn == null)
if (thing == null)
{

result = true;
}
else
{

if (pawn.def.GetModExtension<AnimalStatExtension>() != null)
if (thing.def.GetModExtension<AnimalStatExtension>() != null)
{

extension = pawn.def.GetModExtension<AnimalStatExtension>();
extension = thing.def.GetModExtension<AnimalStatExtension>();
if (extension.showImageInInfoCard)
{

Expand Down

0 comments on commit d4e4b15

Please sign in to comment.