Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -913,6 +913,10 @@ private void DoSteal()
int chanceBeingDetected = FormulaHelper.CalculateShopliftingChance(PlayerEntity, buildingDiscoveryData.quality, weightAndNumItems);
PlayerEntity.TallySkill(DFCareer.Skills.Pickpocket, 1);

// Here we ensure that stealing will always be random
// DaggerfallGuildServicePopupWindow.cs:231 sets a seed which will keep you from being able to steal from magic item shops, which I don't think is purposeful
UnityEngine.Random.InitState(System.DateTime.Now.Millisecond);

if (Dice100.FailedRoll(chanceBeingDetected))
{
DaggerfallUI.AddHUDText(TextManager.Instance.GetLocalizedText("stealSuccess"), 2);
Expand Down