Skip to content

Commit 1bde433

Browse files
committed
Added Gecko Skinning perk to controlled critters if player has the perk, to make geckos killed by controlled critters also have gecko skins in their inventory.
1 parent f0f4948 commit 1bde433

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

artifacts/mods/gl_partycontrol.ssl

+5-1
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@
1111

1212
*/
1313

14+
#include "..\headers\define.h"
1415
#include "main.h"
1516

1617
variable
1718
configSection := "CombatControl",
1819
controlMode,
19-
pidList;
20+
pidList,
21+
hasGeckoSkinning := false;
2022

2123

2224
procedure combatturn_handler begin
@@ -32,6 +34,7 @@ procedure combatturn_handler begin
3234
and (len_array(pidList) == 0 or scan_array(pidList, pid bwand 0xFFFFFF) != -1)
3335
and (controlMode == 1 or party_member_obj(pid))) then begin
3436
set_dude_obj(critter);
37+
if hasGeckoSkinning then critter_add_trait(critter, TRAIT_PERK, PERK_gecko_skinning_perk, 1);
3538
end else begin
3639
set_dude_obj(real_dude_obj);
3740
end
@@ -44,6 +47,7 @@ procedure start begin
4447
if (controlMode > 0) then begin
4548
pidList := GetConfigListInt("CombatControl", "PIDList");
4649
fix_array(pidList);
50+
if has_trait(TRAIT_PERK, dude_obj, PERK_gecko_skinning_perk) then hasGeckoSkinning := true;
4751

4852
register_hook_proc(HOOK_COMBATTURN, combatturn_handler);
4953
end

0 commit comments

Comments
 (0)