Skip to content

Commit

Permalink
mark images as unviewed when reaquired
Browse files Browse the repository at this point in the history
  • Loading branch information
MQDuck committed Dec 28, 2024
1 parent 8674e8a commit d58b753
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions DXRando/DeusEx/Classes/InformationDevices.uc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ var DXRPasswords passwords;
var string plaintext;
var string new_passwords[16];
var string plaintextTag;
var bool bFrobbed;

function string _GetMapName()
{
Expand Down Expand Up @@ -318,7 +319,27 @@ function bool Facelift(bool bOn)
function Frob(actor Frobber, Inventory frobWith)
{
local DXRando dxr;
local DataVaultImage image;
if (imageClass != None && !bFrobbed) {
foreach AllActors(class'DXRando', dxr) {
if (dxr.flags.IsBingoCampaignMode()) {
for (image = dxr.player.FirstImage; image != None; image = image.nextImage) {
if (image.imageDescription == imageClass.default.imageDescription) {
dxr.player.ClientMessage("You found a new copy of " $ imageClass.default.imageDescription $ " to look at");
image.bPlayerViewedImage = false;
break;
}
}
}
break;
}
}
bFrobbed = true;
Super.Frob(Frobber, frobWith);
GlowOff();
}
Expand Down

0 comments on commit d58b753

Please sign in to comment.