Skip to content
Snippets Groups Projects
Commit 93a3fc8e authored by Pregmodder's avatar Pregmodder
Browse files

Merge branch 'cherry-pick-583db9b3' into 'pregmod-master'

use gteq for negative values

See merge request !8952
parents e7401986 e2e3859a
No related branches found
No related tags found
1 merge request!8952use gteq for negative values
...@@ -39,7 +39,7 @@ App.Entity.Facilities.CellblockJob = class extends App.Entity.Facilities.Facilit ...@@ -39,7 +39,7 @@ App.Entity.Facilities.CellblockJob = class extends App.Entity.Facilities.Facilit
if (slave.trust < -50) { if (slave.trust < -50) {
r.push(`${slave.slaveName} is too terrified for ${this.facility.name} to have an effect.`); r.push(`${slave.slaveName} is too terrified for ${this.facility.name} to have an effect.`);
} else if ((slave.devotion > -20 || slave.trust < -20) && (slave.devotion >= -50 || slave.trust < -50)) { } else if ((slave.devotion >= -20 || slave.trust < -20) && (slave.devotion >= -50 || slave.trust < -50)) {
r.push(`${slave.slaveName} is not defiant enough for ${this.facility.name} to have an effect.`); r.push(`${slave.slaveName} is not defiant enough for ${this.facility.name} to have an effect.`);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment