Added clickable blackboard in the form of an object.

Need to add logic (maybe change method for blackboard)
This commit is contained in:
Damian-I
2025-02-19 00:31:36 +00:00
parent 1cec7fca8f
commit 79e518efe3
3 changed files with 28 additions and 1 deletions

View File

@@ -317,6 +317,18 @@
"x":100.927703875072,
"y":101.732793522267
},
{
"gid":417,
"height":48,
"id":16,
"name":"blackboard",
"rotation":0,
"type":"",
"visible":true,
"width":48,
"x":329,
"y":90
},
{
"height":48,
"id":15,
@@ -325,7 +337,7 @@
"type":"",
"visible":true,
"width":48,
"x":390,
"x":432,
"y":144
}

View File

@@ -72,6 +72,15 @@
"text": "URGENT: Multiple unauthorized access attempts detected from CEO's office IP address",
"observations": "A concerning IT department memo"
},
{
"type": "blackboard",
"name": "Office Blackboard",
"takeable": false,
"hasFingerprint": true,
"fingerprintOwner": "ceo",
"fingerprintQuality": 0.8,
"observations": "A blackboard with some recent writing. The CEO was seen using it earlier."
},
{
"type": "fingerprint_kit",
"name": "Fingerprint Kit",

View File

@@ -1483,6 +1483,12 @@
}
}
// Add blackboard interaction
if (data.scenarioData?.type === "blackboard") {
alert("A blackboard with some recent writing. There might be fingerprints on the surface.");
return;
}
alert(message);
}