private bool EventCheck(IJob job) { bool CritSuccess = RollForEvent(job.SuccessChance); bool CritFailure = RollForEvent(job.FailureChance); if (CritSuccess == true) { EA.GetEvent <RequestJobEventEvent>().Publish(new JobEventRequestContainer(job, RP.RandomNumber(2, 7))); return(true); } else if (CritFailure == true) { EA.GetEvent <RequestJobEventEvent>().Publish(new JobEventRequestContainer(job, -1 * RP.RandomNumber(2, 7))); return(true); } return(false); }