updated comments

This commit is contained in:
Chris Schmalz
2024-06-01 11:46:57 -07:00
parent d5175b1c4a
commit 4d0b8a6784
2 changed files with 3 additions and 11 deletions
Binary file not shown.
+3 -11
View File
@@ -1208,37 +1208,29 @@ export class MothershipActor extends Actor {
if (comparison === '<') {
//check against being under the target
if (enrichedRollResult.total < rollTarget) {
//result < target is a success
enrichedRollResult.success = true;
} else {
//result >= target is a failure
enrichedRollResult.success = false;
}
} else if (comparison === '<=') {
//check against being under the target
//check against being under or equal to the target
if (enrichedRollResult.total <= rollTarget) {
//result >= target is a failure
enrichedRollResult.success = true;
} else {
//result < target is a success
enrichedRollResult.success = false;
}
} else if (comparison === '>') {
//check against being under the target
//check against being over the target
if (enrichedRollResult.total > rollTarget) {
//result >= target is a failure
enrichedRollResult.success = true;
} else {
//result < target is a success
enrichedRollResult.success = false;
}
} else if (comparison === '>=') {
//check against being over the target
//check against being over or equal to the target
if (enrichedRollResult.total >= rollTarget) {
//result < target is a failure
enrichedRollResult.success = true;
} else {
//result < target is a success
enrichedRollResult.success = false;
}
}