Plumbot Fixes Mod

SCREENSHOTS
Downloaded 1,829 times 61 Thanks 22 Favourited 8,241 Views
 Say Thanks!
Uploaded: 2nd Aug 2023 at 6:13 PM
Updated: 13th Aug 2023 at 1:26 PM
DESCRIPTION
This core mod fixes a number of issues regarding plumbots from ITF. Updates are cumulative. When installing new version delete the old one.
Version with simler90's Gameplay Core Mod is available here.

UPDATE V2
  • Changed mod name to "Plumbot Fixes Mod" from "Plumbot Lose Trait Chips Fix"
  • Fixed plumbots losing their lifetime wish on disposing(on reset, spliting household, etc.);
    Also fixed Sims3.Gameplay.DreamsAndPromises.DreamsAndPromisesManager::RemoveExistingLifetimeWish method, which was removing
    lifetime wish only partially (not setting SimDescription.LifetimeWish property to zero). Because of this, the game still thought that the character had a lifetime wish.
    Note: Plumbot will still lose his lifetime wish if his sentience chip gets removed, but, of course, he can roll for a new one.
  • Fixed freezing of the fun and social motives, even if plumbot has corresponding chips in situations similar to those described above;
  • Fixed UI not showing "Plumbot need sentience chip..." lifetime wish overlay on first game start if plumbot doesn't have corresponding chip.

ALTERED METHODS
  • Sims3.Gameplay.ActorSystems.OccultRobot.SetupInstantiatedSim(Sim owningSim)
  • Sims3.Gameplay.ActorSystems.OccultRobot::CreateMotives()
  • Sims3.Gameplay.ActorSystems.TraitChip::AddRobotMotives(CommodityKind[] motives)
  • Sims3.Gameplay.ActorSystems.TraitChip::AddTraitChipToSim(SimDescription simDesc)
  • Sims3.Gameplay.ActorSystems.TraitChip::RemoveTraitChipFromSim()
  • Sims3.Gameplay.DreamsAndPromises.DreamsAndPromisesManager::RemoveExistingLifetimeWish()
  • Sims3.Gameplay.UI.HudModel::UpdateSimInfo(SimInfo info, IActor actor, SimUpdateContext context)

Added two fields and properties to Sims3.Gameplay.ActorSystems.TraitChipManager (field - property):
  • mHadSocialTraitChip - HadSocialTraitChip
  • mHadFunTraitChip - HadFunTraitChip

Added two methods to Sims3.Gameplay.ActorSystems.TraitChipManager:
  • Sims3.Gameplay.ActorSystems.TraitChipManager::HasSocialTraitChip()
  • Sims3.Gameplay.ActorSystems.TraitChipManager::HasFunTraitChip()

INITIAL VERSION
  • Fixed plumbots losing trait chips on disposing(on reset, spliting household, etc.);
    Was most apparent with homeless plumbots(all plumbots that reside in Oasis Landing Community Center, paparazzi plumbots, etc.).

ALTERED METHOD
  • Sims3.Gameplay.ActorSystems.TraitChipManager::OnSimDisposed()

COMPATIBILITY
Tested on 1.67 game version. Will conflict with any core mod that alters Sims3GameplaySystems.dll.