-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinjection-xenogene.rb
More file actions
24 lines (23 loc) · 883 Bytes
/
injection-xenogene.rb
File metadata and controls
24 lines (23 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
InjectionHelper.defineMapPatch(451, 55) { |event|
event.patch(:xenogenestealth) { |page|
matched = page.lookForSequence([:ControlVariable, 620, :[]=, :Constant, 62])
if matched
page.insertAfter(matched,
[:ShowText, "Do you want to skip this stealth segment?"],
[:ShowChoices, ["No", "Yes"], 1],
[:When, 0, "No"],
:Done,
[:When, 1, "Yes"],
[:ShowText, "Let's do it in post!"],
[:ControlVariable, 620, :[]=, :Constant, 68],
[:PlaySoundEvent, 'Entering Door', 80, 100],
[:ChangeScreenColorTone, Tone.new(-255,-255,-255,0), 10],
[:Wait, 10],
[:TransferPlayer, :Constant, 451, 42, 100, true],
[:Script, 'Kernel.pbRemoveDependency2("AdelindeDep2")'],
[:Wait, 10],
[:ChangeScreenColorTone, Tone.new(0,0,0,0), 10],
:Done)
end
}
}