-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
23 lines (23 loc) · 732 Bytes
/
index.js
File metadata and controls
23 lines (23 loc) · 732 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* global ngapp, xelib */
registerPatcher({
info: info,
gameModes: [xelib.gmTES5, xelib.gmSSE],
settings: {
label: 'Water fix',
hide: true
},
execute: {
process: [{
load: () => ({
signature: 'WATR'
}),
patch: function(record, helpers, settings, locals) {
helpers.logMessage(`Patching ${xelib.LongName(record)}`);
if (!xelib.GetFlag(record, 'FNAM - Flags', 'Causes Damage')) {
helpers.logMessage(`Adding "causes damage flag" to ${xelib.LongName(record)}`);
xelib.SetFlag(record, 'FNAM - Flags', 'Causes Damage', true);
}
}
}]
}
});