Skip to content

Commit

Permalink
fix: trait buffs
Browse files Browse the repository at this point in the history
gives obliterated a fighting chance.
  • Loading branch information
KRdaMystic committed Jan 1, 2025
1 parent 07ed772 commit f38e8b0
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions scripts/scr_initialize_custom/scr_initialize_custom.gml
Original file line number Diff line number Diff line change
Expand Up @@ -927,12 +927,12 @@ function scr_initialize_custom() {
tenth -= 10;
}
if scr_has_disadv("Obliterated") {
techmarines = 0;
epistolary = 0;
codiciery = 0;
lexicanum = 0;
apothecary = 0;
chaplains = 0;
techmarines -= 7;
epistolary -= 2;
codiciery -= 1;
lexicanum -= 4;
apothecary -= 7;
chaplains -= 7;
terminator = 0;
veteran = 0;
second = 0;
Expand All @@ -945,7 +945,6 @@ function scr_initialize_custom() {
ninth = 0;
tenth = 10;
assault = 0;
siege = 0;
devastator = 0;
}

Expand Down Expand Up @@ -976,7 +975,7 @@ function scr_initialize_custom() {
if (obj_creation.custom != 0) {
var bonus_marines = 0;
if (obj_creation.strength > 5) then bonus_marines = (obj_creation.strength - 5) * 50;
if scr_has_disadv("Obliterated") then bonus_marines = (obj_creation.strength - 5) * 5;
if scr_has_disadv("Obliterated") then bonus_marines = (obj_creation.strength - 5) * 10;
var i = 0;
while (bonus_marines >= 5) {
switch (i % 10) {
Expand Down

0 comments on commit f38e8b0

Please sign in to comment.