From 0f9392d8e0aa35240561e7efde13c363c5e4aa01 Mon Sep 17 00:00:00 2001 From: EttyKitty <20323032+EttyKitty@users.noreply.github.com> Date: Mon, 16 Dec 2024 15:33:10 +0300 Subject: [PATCH 1/4] New chapter traits --- objects/obj_controller/Create_0.gml | 2 ++ objects/obj_creation/Create_0.gml | 32 ++++++++++++++++- .../scr_initialize_custom.gml | 35 ++++++++++++++++++- 3 files changed, 67 insertions(+), 2 deletions(-) diff --git a/objects/obj_controller/Create_0.gml b/objects/obj_controller/Create_0.gml index c23eeaf77..d625bb917 100644 --- a/objects/obj_controller/Create_0.gml +++ b/objects/obj_controller/Create_0.gml @@ -1437,6 +1437,8 @@ loyalty_hidden=100;// Updated when inquisitors do an inspection gene_seed=20; if (scr_has_disadv("Sieged")) then gene_seed = floor(random_range(250, 400)); if scr_has_disadv("Obliterated") then gene_seed=floor(random_range(50,200)); +if scr_has_disadv("Serpents Delight") then gene_seed=floor(random_range(50,250)); +if scr_has_disadv("Enduring Angels") then gene_seed=floor(random_range(50,250)); if (global.chapter_name=="Lamenters") then gene_seed=30; if (global.chapter_name=="Soul Drinkers") then gene_seed=60; diff --git a/objects/obj_creation/Create_0.gml b/objects/obj_creation/Create_0.gml index b14c431dc..3b59c3f78 100644 --- a/objects/obj_creation/Create_0.gml +++ b/objects/obj_creation/Create_0.gml @@ -874,7 +874,37 @@ var all_disadvantages = [ description : "Whether due to being cut off from forge worlds or bad luck, your chapter no longer has enough high quality gear to go around. Your elite troops will have to make do with standard armour.", value: 10, meta : ["Gear Quality"] - } + }, + { + name : "Enduring Angels", + description : "The Chapter's journey thus far has been arduous & unforgiving leaving them severely understrength yet not out of the fight. You begin with 5 fewer company's", + value : 50, + meta : ["Status"], + }, + { + name : "Serpents Delight", + description : "Sleeper cells infiltrated your chapter. When they rose up for the decapitation strike,they slew the 5 most experienced company's and many of the HQ staff before being defeated", + value : 70, + meta : ["Status"], + }, + { + name : "Small Apothecarion", + description : "Your chapter has a smaller Apothecarion compared to other chapters.", + value : 25, + meta : ["Apothecaries"], + }, + { + name : "Small Reclusiam", + description : "Your chapter has a smaller reclusiam compared to other chapters.", + value : 25, + meta : ["Faith"], + }, + { + name : "Small Librarius", + description : "Your chapter has a smaller Librarius compared to other chapters.", + value : 25, + meta : ["Librarians"], + }, ] obj_creation.all_disadvantages = [] diff --git a/scripts/scr_initialize_custom/scr_initialize_custom.gml b/scripts/scr_initialize_custom/scr_initialize_custom.gml index 0384673d0..8c4c90e16 100644 --- a/scripts/scr_initialize_custom/scr_initialize_custom.gml +++ b/scripts/scr_initialize_custom/scr_initialize_custom.gml @@ -957,11 +957,44 @@ function scr_initialize_custom() { assault = 0; devastator = 0; } - + if scr_has_disadv("Enduring Angels") { + fifth = 0; + sixth = 0; + seventh = 0; + eighth = 0; + ninth = 0; + } + if scr_has_disadv("Serpents Delight") { + techmarines -= 5; + epistolary -= 1; + lexicanum -= 3; + apothecary -= 5; + chaplains -= 5; + terminator = 0; + veteran = 0; + second = 0; + third = 0; + fourth = 0; + tenth = 0; + } if scr_has_disadv ("Tech-Heresy") { techmarines -= 4; tenth += 4; } + if scr_has_disadv ("Small Apothecarion") { + apothecary -= 5; + tenth += 5; + } + if scr_has_disadv ("Small Librarius") { + epistolary -= 1; + codiciery -= 1; + lexicanum -= 2; + tenth += 5; + } + if scr_has_disadv ("Small Reclusiam") { + chaplains -= 5; + tenth += 5; + } if scr_has_adv ("Reverent Guardians") { chaplains += 4; tenth -= 4; From 2168d04ee58b46dce448fba02c90a60454de0e07 Mon Sep 17 00:00:00 2001 From: KR Da Mystic Date: Sun, 15 Dec 2024 16:04:54 +0900 Subject: [PATCH 2/4] Cherry Picking adv_6 --- objects/obj_controller/Create_0.gml | 2 +- scripts/scr_initialize_custom/scr_initialize_custom.gml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/objects/obj_controller/Create_0.gml b/objects/obj_controller/Create_0.gml index d625bb917..5675bc12f 100644 --- a/objects/obj_controller/Create_0.gml +++ b/objects/obj_controller/Create_0.gml @@ -1435,7 +1435,7 @@ loyalty=100; loyalty_hidden=100;// Updated when inquisitors do an inspection // ** Sets up gene seed ** gene_seed=20; -if (scr_has_disadv("Sieged")) then gene_seed = floor(random_range(250, 400)); +if scr_has_disadv("Sieged") then gene_seed=floor(random_range(250,400)); if scr_has_disadv("Obliterated") then gene_seed=floor(random_range(50,200)); if scr_has_disadv("Serpents Delight") then gene_seed=floor(random_range(50,250)); if scr_has_disadv("Enduring Angels") then gene_seed=floor(random_range(50,250)); diff --git a/scripts/scr_initialize_custom/scr_initialize_custom.gml b/scripts/scr_initialize_custom/scr_initialize_custom.gml index 8c4c90e16..8fab0c5cf 100644 --- a/scripts/scr_initialize_custom/scr_initialize_custom.gml +++ b/scripts/scr_initialize_custom/scr_initialize_custom.gml @@ -3233,6 +3233,7 @@ function scr_initialize_custom() { scr_add_item("Psychic Hood", 4); scr_add_item("Force Staff", 4); scr_add_item("Plasma Pistol", 4); + scr_add_item("Company Standard", 4); if(scr_has_adv("Crafters")){ scr_add_item("Tartaros", 10); From 800609819afd801e073f80b52a587437b57be5ec Mon Sep 17 00:00:00 2001 From: KR Da Mystic Date: Tue, 17 Dec 2024 21:21:19 +0900 Subject: [PATCH 3/4] New Disadvs 2 disadvs suggested by "Themigratingcoconut" 3 minor disadvs to subtract specs --- objects/obj_creation/Create_0.gml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/objects/obj_creation/Create_0.gml b/objects/obj_creation/Create_0.gml index 3b59c3f78..d26b2cd3c 100644 --- a/objects/obj_creation/Create_0.gml +++ b/objects/obj_creation/Create_0.gml @@ -888,20 +888,20 @@ var all_disadvantages = [ meta : ["Status"], }, { - name : "Small Apothecarion", - description : "Your chapter has a smaller Apothecarion compared to other chapters.", + name : "Weakened Apothecarion", + description : "Many of your chapter's Apothecaries have fallen in recent battles whether due to their incompetence or deliberate targetting.", value : 25, meta : ["Apothecaries"], }, { name : "Small Reclusiam", - description : "Your chapter has a smaller reclusiam compared to other chapters.", + description : "Your chapter cares little for its reclusiam compared to other chapters fewer marines have shown the desire to be chaplains.", value : 25, meta : ["Faith"], }, { - name : "Small Librarius", - description : "Your chapter has a smaller Librarius compared to other chapters.", + name : "Barren Librarius", + description : "Your chapter has a smaller Librarius compared to other chapters due to having fewer potent psykers.", value : 25, meta : ["Librarians"], }, From 2954082e1387ae21e0e3f92eebd7ebee0f720bf1 Mon Sep 17 00:00:00 2001 From: KR Da Mystic Date: Sat, 25 Jan 2025 20:13:18 +0900 Subject: [PATCH 4/4] Trait bonuses adds more maluses to the new disadvs --- .../scr_initialize_custom.gml | 6 +++++ scripts/scr_unit_traits/scr_unit_traits.gml | 25 +++++++++++++++++-- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/scripts/scr_initialize_custom/scr_initialize_custom.gml b/scripts/scr_initialize_custom/scr_initialize_custom.gml index 8fab0c5cf..72fdda33f 100644 --- a/scripts/scr_initialize_custom/scr_initialize_custom.gml +++ b/scripts/scr_initialize_custom/scr_initialize_custom.gml @@ -3383,6 +3383,9 @@ function add_unit_to_company(ttrpg_name, company, slot, role_name, role_id, wep1 if(role_id == eROLE.Champion){ spawn_unit.add_trait("champion"); } + if(role_id == eROLE.Apothecary){ + spawn_unit.add_trait("soft_target"); + } if(role_id == eROLE.Librarian){ var let = ""; if (obj_creation.discipline = "default") { @@ -3408,6 +3411,9 @@ function add_unit_to_company(ttrpg_name, company, slot, role_name, role_id, wep1 if(scr_has_adv("Psyker Abundance")){ spawn_unit.add_exp(10); } + if(scr_has_disadv("Barren Librarius")){ + spawn_unit.psionic = choose(8, 9, 10, 11,); + } } return spawn_unit; diff --git a/scripts/scr_unit_traits/scr_unit_traits.gml b/scripts/scr_unit_traits/scr_unit_traits.gml index 1197db000..19152ae44 100644 --- a/scripts/scr_unit_traits/scr_unit_traits.gml +++ b/scripts/scr_unit_traits/scr_unit_traits.gml @@ -165,13 +165,21 @@ global.trait_list = { }, "zealous_faith":{ strength:[1,1,"max"], - texhnology:-2, + technology:-2, wisdom:3, intelligence:-2, piety:[5,2,"max"], display_name:"Zealous Faith", flavour_text:"Put great emphasis on their faith, able to draw strength from it in crisis" }, + "faithless":{ + technology:2, + wisdom:2, + intelligence:2, + piety:[-5,2,"max"], + display_name:"Faithless", + flavour_text:"Puts great emphasis on a pragmatic and logical approach in place of faith and spiritual beliefs" + }, "feet_floor":{ wisdom:1, dexterity:-2, @@ -315,6 +323,11 @@ global.trait_list = { technology:[-7,2,"min"], flavour_text:"Have a deep mistrust and loathing of technology", }, + "soft_target":{ + display_name:"Marked for death", + constitution:[-5,2,], + flavour_text:"This Marine can't shake the feeling that his days are numbered; in battle enemy attacks seem to find their way to softer sections of armor", + }, "fast_learner":{ display_name:"Quick Learner", wisdom:[2,2,"max"], @@ -335,7 +348,6 @@ global.trait_list = { technology:[3,1,"max"], intelligence:1, flavour_text:"Engage in study and beliefs considered heretical in the eyes of Mars and the Imperium", - //effect:"bonus to fist type weaponry", }, "crafter":{ display_name:"Crafter", @@ -795,6 +807,15 @@ global.astartes_trait_dist = [ ] } ], + [ + "faithless", + [1000,980], + { + "disadvantage":[ + "Small Reclusiam",[1000,50],"required" + ] + } + ], ["flesh_is_weak",[1000,999],{ chapter_name:["Iron Hands",[1000,600],"required"], progenitor:[ePROGENITOR.IRON_HANDS,[1000,800],"required"],