Skip to content

Commit

Permalink
Add framework for bingo goals based on looking at images in your
Browse files Browse the repository at this point in the history
datavault
  • Loading branch information
theastropath committed Aug 6, 2023
1 parent 1ceebb2 commit 7ce7f69
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions DXRModules/DeusEx/Classes/DXREvents.uc
Original file line number Diff line number Diff line change
Expand Up @@ -2335,6 +2335,7 @@ defaultproperties
bingo_options(209)=(event="NYEagleStatue_peeped",desc="Look at a bronze eagle statue",max=1,missions=28)
bingo_options(210)=(event="BrokenPianoPlayed",desc="Play a broken piano",max=1,missions=64)
bingo_options(211)=(event="Supervisor_Paid",desc="Pay for access to the VersaLife labs",max=1,missions=64)
bingo_options(212)=(event="ImageOpened_WaltonSimons",desc="Look at Walton Simons' nudes",max=1,missions=544)

mutually_exclusive(0)=(e1="PaulDenton_Dead",e2="SavedPaul")
mutually_exclusive(1)=(e1="JockBlewUp",e2="GotHelicopterInfo")
Expand Down
3 changes: 3 additions & 0 deletions DXRNonVanilla/DeusEx/Classes/DXRandoRootWindow.uc
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ function DeusExBaseWindow InvokeUIScreen(Class<DeusExBaseWindow> newScreen, opti
case class'PersonaScreenGoals':
newScreen = class'DXRPersonaScreenGoals';
break;
case class'PersonaScreenImages':
newScreen = class'DXRPersonaScreenImages';
break;
default:
if(class<NetworkTerminal>(newScreen) != None) {
log("WARNING: InvokeUIScreen "$newScreen);
Expand Down
10 changes: 10 additions & 0 deletions DXRando/DeusEx/Classes/Image06_HK_MJ12Lab.uc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//=============================================================================
// DXRImage06_HK_MJ12Lab
//=============================================================================

class DXRImage06_HK_MJ12Lab injects Image06_HK_MJ12Lab;

defaultproperties
{
imageDescription="Hong Kong MJ12 Lab Facility"
}
24 changes: 24 additions & 0 deletions GUI/DeusEx/Classes/PersonaScreenImages.uc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
class DXRPersonaScreenImages injects PersonaScreenImages;

function SetImage(DataVaultImage newImage)
{
local string bingoName;
local DXRando dxr;

if (newImage!=None && newImage.bPlayerViewedImage==False){
bingoName = newImage.imageDescription;
bingoName = class'DXRInfo'.static.ReplaceText(bingoName," ","");
bingoName = class'DXRInfo'.static.ReplaceText(bingoName,"-","");
bingoName = class'DXRInfo'.static.ReplaceText(bingoName,":","");
bingoName = class'DXRInfo'.static.ReplaceText(bingoName,",","");
bingoName = "ImageOpened_"$bingoName;

foreach newImage.AllActors(class'DXRando', dxr) {
class'DXREvents'.static.MarkBingo(dxr,bingoName);
}

newImage.bPlayerViewedImage = True;
}

Super.SetImage(newImage);
}

0 comments on commit 7ce7f69

Please sign in to comment.