From c7e5d8dae98c37ad7e48ec75a28012f0d55386ad Mon Sep 17 00:00:00 2001 From: Da Fist <144086663+KRdaMystic@users.noreply.github.com> Date: Sun, 29 Dec 2024 23:33:44 +0900 Subject: [PATCH] Update objects/obj_p_assra/Step_0.gml refactor: Add code suggestion to boarding Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com> --- objects/obj_p_assra/Step_0.gml | 1 + 1 file changed, 1 insertion(+) diff --git a/objects/obj_p_assra/Step_0.gml b/objects/obj_p_assra/Step_0.gml index ce0a2e6f0..f7df8f170 100644 --- a/objects/obj_p_assra/Step_0.gml +++ b/objects/obj_p_assra/Step_0.gml @@ -129,6 +129,7 @@ if (boarding=true) and (board_cooldown>=0) and (instance_exists(target)) and (in if ((target.owner = eFACTION.Chaos) and (obj_fleet.csm_exp=2)) or (target.owner = eFACTION.Tyranids) then boarding_disadvantage-=30;// Daemons, veteran CSM, tyranids boarding_odds+=boarding_advantage+boarding_disadvantage; + boarding_odds=clamp(boarding_odds,0,100); outcome_roll=floor(random(100))+1;