Welcome to the AFK Mods bug tracker. In order to report an issue, you need to have a VALIDATED account to post one. Once you have followed the link the registration email sent you, please select a project from the drop down menu below. Select “Open New Issue” and fill out the form with as many details as possible.

Please also consider sending your bug report to Bethesda if you are reporting on an issue with Skyrim Special Edition, Fallout 4, or Starfield. Doing so will help everyone on all platforms.

Issue Data
Status: Closed
Issue Type: Bug Report
Project: Unofficial Skyrim Special Edition Patch
Component: Skyrim SE: Vanilla
Category: Papyrus
Assigned To: Nobody
Platform: All
Severity: Low
Votes: 0
Watching: N/A
Opened By Garthand on Dec 26, 2016 11:25 pm
Last Edited By Arthmoor on Jan 28, 2017 4:30 am
Closed By Arthmoor on Jan 28, 2017 4:30 am
Resolution: Fixed
Comment: Fixed for USLEEP 3.0.8/USSEP 4.0.6.

Issue #21775: Mehrunes Razor Crit Chance Incorrect

 
Mehrune's razor has a comment stating that it should have a 1% chance to instakill its target. The way the code is set up also suggests this. See the code snippet from DA07MehrunesRazorMagicEffectScript:

<code>;1 percent chance to kill target
If (Utility.RandomInt() <= 1)</code>

However, Utility.RandomInt has a default minimum of 0, and maximum of 100 ([[https://www.creationkit.com/index.php?title=RandomInt_-_Utility|CK documentation]]) This means that it's checking if the random number is either 0 or 1 out of 100, meaning the effective chance is 2/101.

According to the CK documentation, we can just pass it a parameter that sets the minimum int to 1 so that the crit chance is correct like so:

<code>If (Utility.RandomInt(int aiMin = 1, int aiMax = 100) <= 1)</code>

Related Issues: 24327