Skip to content

Commit

Permalink
wrong race variable on new recruits
Browse files Browse the repository at this point in the history
  • Loading branch information
OH296 committed Jan 13, 2025
1 parent 44055ec commit d643fa8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions scripts/scr_add_man/scr_add_man.gml
Original file line number Diff line number Diff line change
Expand Up @@ -216,13 +216,14 @@ function scr_add_man(man_role, target_company, spawn_exp, spawn_name, corruption

if (!array_contains(non_marine_roles, man_role)) {
// Weapons
obj_ini.race[target_company][good] = eFACTION.Player;
if (man_role == obj_ini.role[100][12]) {
_gear = {
wep2 : obj_ini.wep2[100, 12],
wep1 : obj_ini.wep1[100, 12],
armour : obj_ini.armour[100, 12],
gear : obj_ini.gear[100, 12],
mobi : obj_ini.mobi[100, 12],
wep2 : obj_ini.wep2[100][12],
wep1 : obj_ini.wep1[100][12],
armour : obj_ini.armour[100][12],
gear : obj_ini.gear[100][12],
mobi : obj_ini.mobi[100][12],
}
};

Expand Down

0 comments on commit d643fa8

Please sign in to comment.