Weighted Random Selection

This commit is contained in:
Maurane
2026-01-22 15:31:25 +01:00
parent b7c329bbde
commit e4a7d6beac
13 changed files with 365 additions and 204 deletions
+1 -183
View File
@@ -1,4 +1,4 @@
[gd_scene load_steps=47 format=3 uid="uid://chytk2cctjk3x"]
[gd_scene load_steps=40 format=3 uid="uid://chytk2cctjk3x"]
[ext_resource type="Script" uid="uid://b3ms0imu0umn8" path="res://screening_desk.gd" id="1_1s7k3"]
[ext_resource type="Texture2D" uid="uid://b2epvjeqvmgrs" path="res://Art/Rooms/screening_room/screening_room_glass.png" id="3_nxnrp"]
@@ -8,9 +8,7 @@
[ext_resource type="Texture2D" uid="uid://4qtc0tkq2wba" path="res://Art/Rooms/screening_room/shutter_top.png" id="6_1rj24"]
[ext_resource type="Texture2D" uid="uid://cci0pb12chlps" path="res://Art/Rooms/screening_room/computer.png" id="6_6a8ar"]
[ext_resource type="Texture2D" uid="uid://dj1x60fld5400" path="res://Art/Rooms/screening_room/backwall.png" id="6_5772r"]
[ext_resource type="Texture2D" uid="uid://c3je4gir1qlot" path="res://Art/BlackScreen.png" id="7_106l6"]
[ext_resource type="Texture2D" uid="uid://jychpkygmjib" path="res://Art/Rooms/screening_room/desk.png" id="7_dp545"]
[ext_resource type="Texture2D" uid="uid://diln53wxa3oep" path="res://Art/Rooms/screening_room/journal_open.png" id="7_eqiuk"]
[ext_resource type="Texture2D" uid="uid://cdbiwtt2w37kr" path="res://Art/Rooms/screening_room/shutter_bottom.png" id="7_feog2"]
[ext_resource type="Theme" uid="uid://3k7sqw211ncl" path="res://Art/UI/button_theme.tres" id="8_hxrv4"]
[ext_resource type="Texture2D" uid="uid://c3frxq4vyu0pr" path="res://Art/Rooms/screening_room/console_screen.png" id="9_68gp8"]
@@ -33,42 +31,6 @@
[sub_resource type="Theme" id="Theme_63o5x"]
RichTextLabel/fonts/normal_font = ExtResource("14_0pvwy")
[sub_resource type="Theme" id="Theme_dahej"]
default_font = ExtResource("14_0pvwy")
RichTextLabel/colors/default_color = Color(0, 0, 0, 1)
RichTextLabel/fonts/normal_font = ExtResource("14_0pvwy")
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_3lob0"]
bg_color = Color(0.843137, 0.843137, 0.843137, 1)
border_width_left = 2
border_width_top = 2
border_width_right = 2
border_width_bottom = 2
border_color = Color(0, 0, 0, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_wj8aa"]
bg_color = Color(0.784314, 0.784314, 0.784314, 1)
border_width_left = 2
border_width_top = 2
border_width_right = 2
border_width_bottom = 2
border_color = Color(0, 0, 0, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_5jbc5"]
bg_color = Color(0.901961, 0.901961, 0.901961, 1)
border_width_left = 2
border_width_top = 2
border_width_right = 2
border_width_bottom = 2
border_color = Color(0, 0, 0, 1)
[sub_resource type="Theme" id="Theme_gwogn"]
Button/colors/font_color = Color(0, 0, 0, 1)
Button/fonts/font = ExtResource("14_0pvwy")
Button/styles/hover = SubResource("StyleBoxFlat_3lob0")
Button/styles/normal = SubResource("StyleBoxFlat_wj8aa")
Button/styles/pressed = SubResource("StyleBoxFlat_5jbc5")
[sub_resource type="Animation" id="Animation_ub1ft"]
length = 0.001
tracks/0/type = "value"
@@ -601,150 +563,6 @@ TO GET TO THE NEXT FLOOR"
horizontal_alignment = 1
vertical_alignment = 1
[node name="JournalLayer" type="CanvasLayer" parent="LowerHalf"]
layer = 110
[node name="JournalOpen" type="Control" parent="LowerHalf/JournalLayer"]
z_index = 8
layout_mode = 3
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -800.0
offset_top = -800.0
offset_right = 800.0
grow_horizontal = 2
grow_vertical = 0
theme = SubResource("Theme_dahej")
[node name="Shader" type="TextureRect" parent="LowerHalf/JournalLayer/JournalOpen"]
modulate = Color(1, 1, 1, 0.52549)
z_index = 2
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -221.0
offset_top = -356.0
offset_right = 198.0
offset_bottom = 44.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("7_106l6")
[node name="JournalOpenTexture" type="TextureRect" parent="LowerHalf/JournalLayer/JournalOpen"]
z_index = 2
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("7_eqiuk")
[node name="JournalMargin" type="MarginContainer" parent="LowerHalf/JournalLayer/JournalOpen"]
z_index = 2
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 70
theme_override_constants/margin_top = 30
theme_override_constants/margin_right = 70
theme_override_constants/margin_bottom = 50
[node name="PageArea" type="HBoxContainer" parent="LowerHalf/JournalLayer/JournalOpen/JournalMargin"]
layout_mode = 2
theme_override_constants/separation = 90
[node name="LeftPage" type="VBoxContainer" parent="LowerHalf/JournalLayer/JournalOpen/JournalMargin/PageArea"]
layout_mode = 2
size_flags_horizontal = 3
[node name="PageTitle" type="RichTextLabel" parent="LowerHalf/JournalLayer/JournalOpen/JournalMargin/PageArea/LeftPage"]
custom_minimum_size = Vector2(0, 100)
layout_mode = 2
size_flags_stretch_ratio = 0.1
theme_override_font_sizes/normal_font_size = 28
bbcode_enabled = true
text = "
[center]USER'S GUIDE[/center]"
[node name="Instructions" type="RichTextLabel" parent="LowerHalf/JournalLayer/JournalOpen/JournalMargin/PageArea/LeftPage"]
custom_minimum_size = Vector2(0, 500)
layout_mode = 2
size_flags_vertical = 3
size_flags_stretch_ratio = 0.0
theme_override_constants/line_separation = 20
theme_override_font_sizes/normal_font_size = 20
bbcode_enabled = true
text = "
THE FOLLOWING SYMPTOMS HAVE BEEN IDENTIFIED AS MARKERS OF ABNORMALITY CONVERSION
IF YOU DETECT ONE THAT WAS NOT ASSESSED IN PRE-SCREENING, [color=red]TERMINATE[/color] THE SUBJECT"
[node name="CloseManual" type="Button" parent="LowerHalf/JournalLayer/JournalOpen/JournalMargin/PageArea/LeftPage"]
custom_minimum_size = Vector2(200, 60)
layout_mode = 2
size_flags_horizontal = 4
theme = SubResource("Theme_gwogn")
text = "Close manual"
[node name="RightPage" type="VBoxContainer" parent="LowerHalf/JournalLayer/JournalOpen/JournalMargin/PageArea"]
layout_mode = 2
size_flags_horizontal = 3
[node name="Symptoms" type="RichTextLabel" parent="LowerHalf/JournalLayer/JournalOpen/JournalMargin/PageArea/RightPage"]
layout_mode = 2
size_flags_vertical = 3
theme_override_constants/paragraph_separation = 1
theme_override_font_sizes/normal_font_size = 20
bbcode_enabled = true
text = "SUICIDAL IDEATIONS
Persistent thoughts about ending one's own life
PANIC ATTACKS
Acute episodes of severe anxiety
PERSECUTORY DELUSIONS
False conviction of being targeted or harmed
MEGALOMANIAC DELUSIONS
False exaggeration of self-importance or power
MYSTICAL DELUSIONS
False certainty of spiritual, divine connection
MANIA
Excessively elevated mood and increased energy
AUDITORY HALLUCINATIONS
False perceptions of external sound
VISUAL HALLUCINATIONS
False perceptions of visual stimuli
HAPTIC HALLUCINATIONS
False perceptions of touch
CENESTHETIC HALLUCINATIONS
False internal bodily sensations
SELF-MUTILATION
Deliberate injury to one's own body
HETERO-AGRESSIVE BEHAVIOUR
Hostility, verbal agression, threats"
[node name="GreenButton" type="TextureButton" parent="LowerHalf"]
z_index = 1
layout_mode = 1