Skip to content

Commit

Permalink
DXRStarMap rearrange functions for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
Die4Ever committed Mar 22, 2024
1 parent 0e95424 commit 0feea59
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions DXRModules/DeusEx/Classes/DXRStartMap.uc
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,35 @@ function PreFirstEntry()
}
}

static function int GetStartMapMission(int start_map_val)
{
local int mission;

switch(start_map_val)
{
case 0:
mission=1; //Mission 1 start, nothing
break;
case 70:
case 75:
mission = 6;// 2nd half of hong kong, but really still mission 6
break;
case 99:
mission=10; //Mission 9 graveyard, basically mission 10
break;
case 109:
mission=11; //Mission 10 Chateau, but basically mission 11
break;
case 119:
mission=12; //Mission 11 Everett, but basically mission 12
break;
default:
mission=start_map_val/10;
break;
}
return mission;
}

static simulated function int GetStartingMissionMask(int start_map)
{
local int mask, i;
Expand Down Expand Up @@ -376,35 +405,6 @@ static function string _GetStartMap(int start_map_val, out string friendlyName,
}
}

static function int GetStartMapMission(int start_map_val)
{
local int mission;

switch(start_map_val)
{
case 0:
mission=1; //Mission 1 start, nothing
break;
case 70:
case 75:
mission = 6;// 2nd half of hong kong, but really still mission 6
break;
case 99:
mission=10; //Mission 9 graveyard, basically mission 10
break;
case 109:
mission=11; //Mission 10 Chateau, but basically mission 11
break;
case 119:
mission=12; //Mission 11 Everett, but basically mission 12
break;
default:
mission=start_map_val/10;
break;
}
return mission;
}

static function int GetStartMapSkillBonus(int start_map_val)
{
local int skillBonus, mission;
Expand Down

1 comment on commit 0feea59

@Die4Ever
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.