﻿@GH_active_effect_weight   = 150
@GH_override_effect_weight = 250
# Values of 0 stop the decal from showing up, so this is necessary
@ZERO = 0.004

GH_portrait_effects_clothing_1_r = {
	usage = game

	clothing_1_r = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = gene_GH_marker_clothing_1_r
				template = marker_clothing_1_r
				value = {
					value = 0
					if = {
						limit = {
							exists = this
							is_alive = yes
							has_variable = POD_portrait_clothing_1_r
						}
						add = var:POD_portrait_clothing_1_r
					}
					else_if = {
						limit = {
							exists = this
							house ?= { has_variable = POD_portrait_clothing_1_r }
						}
						add = house.var:POD_portrait_clothing_1_r
					}
				}
			}
		}
		weight = {
			base = 0
			modifier = {
				add = @GH_override_effect_weight
				exists = this
				is_alive = yes
				has_variable = POD_portrait_clothing_1_r
			}
			modifier = {
				add = @GH_active_effect_weight
				exists = this
				house ?= { has_variable = POD_portrait_clothing_1_r }
			}
		}
	}
}

GH_portrait_effects_clothing_1_g = {
	usage = game
	
	statue_clothing_1_g = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = gene_GH_marker_clothing_1_g
				template = marker_clothing_1_g
				value = {
					value = 0
					if = {
						limit = {
							exists = this
							is_alive = yes
							has_variable = POD_portrait_clothing_1_g
						}
						add = var:POD_portrait_clothing_1_g
					}
					else_if = {
						limit = {
							exists = this
							house ?= { has_variable = POD_portrait_clothing_1_g }
						}
						add = house.var:POD_portrait_clothing_1_g
					}
				}
			}
		}
		weight = {
			base = 0
			modifier = {
				add = @GH_override_effect_weight
				exists = this
				is_alive = yes
				has_variable = POD_portrait_clothing_1_g
			}
			modifier = {
				add = @GH_active_effect_weight
				exists = this
				house ?= { has_variable = POD_portrait_clothing_1_g }
			}
		}
	}
}

GH_portrait_effects_clothing_1_b = {
	usage = game
	
	statue_clothing_1_b = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = gene_GH_marker_clothing_1_b
				template = marker_clothing_1_b
				value = {
					value = 0
					if = {
						limit = {
							exists = this
							is_alive = yes
							has_variable = POD_portrait_clothing_1_b
						}
						add = var:POD_portrait_clothing_1_b
					}
					else_if = {
						limit = {
							exists = this
							house ?= { has_variable = POD_portrait_clothing_1_b }
						}
						add = house.var:POD_portrait_clothing_1_b
					}
				}
			}
		}
		weight = {
			base = 0
			modifier = {
				add = @GH_override_effect_weight
				exists = this
				is_alive = yes
				has_variable = POD_portrait_clothing_1_b
			}
			modifier = {
				add = @GH_active_effect_weight
				exists = this
				house ?= { has_variable = POD_portrait_clothing_1_b }
			}
		}
	}
}

GH_portrait_effects_clothing_2_r = {
	usage = game

	clothing_2_r = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = gene_GH_marker_clothing_2_r
				template = marker_clothing_2_r
				value = {
					value = 0
					if = {
						limit = {
							exists = this
							is_alive = yes
							has_variable = POD_portrait_clothing_2_r
						}
						add = var:POD_portrait_clothing_2_r
					}
					else_if = {
						limit = {
							exists = this
							house ?= { has_variable = POD_portrait_clothing_2_r }
						}
						add = house.var:POD_portrait_clothing_2_r
					}
				}
			}
		}
		weight = {
			base = 0
			modifier = {
				add = @GH_override_effect_weight
				exists = this
				is_alive = yes
				has_variable = POD_portrait_clothing_2_r
			}
			modifier = {
				add = @GH_active_effect_weight
				exists = this
				house ?= { has_variable = POD_portrait_clothing_2_r }
			}
		}
	}
}

GH_portrait_effects_clothing_2_g = {
	usage = game
	
	statue_clothing_2_g = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = gene_GH_marker_clothing_2_g
				template = marker_clothing_2_g
				value = {
					value = 0
					if = {
						limit = {
							exists = this
							is_alive = yes
							has_variable = POD_portrait_clothing_2_g
						}
						add = var:POD_portrait_clothing_2_g
					}
					else_if = {
						limit = {
							exists = this
							house ?= { has_variable = POD_portrait_clothing_2_g }
						}
						add = house.var:POD_portrait_clothing_2_g
					}
				}
			}
		}
		weight = {
			base = 0
			modifier = {
				add = @GH_override_effect_weight
				exists = this
				is_alive = yes
				has_variable = POD_portrait_clothing_2_g
			}
			modifier = {
				add = @GH_active_effect_weight
				exists = this
				house ?= { has_variable = POD_portrait_clothing_2_g }
			}
		}
	}
}

GH_portrait_effects_clothing_2_b = {
	usage = game
	
	statue_clothing_2_b = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = gene_GH_marker_clothing_2_b
				template = marker_clothing_2_b
				value = {
					value = 0
					if = {
						limit = {
							exists = this
							is_alive = yes
							has_variable = POD_portrait_clothing_2_b
						}
						add = var:POD_portrait_clothing_2_b
					}
					else_if = {
						limit = {
							exists = this
							house ?= { has_variable = POD_portrait_clothing_2_b }
						}
						add = house.var:POD_portrait_clothing_2_b
					}
				}
			}
		}
		weight = {
			base = 0
			modifier = {
				add = @GH_override_effect_weight
				exists = this
				is_alive = yes
				has_variable = POD_portrait_clothing_2_b
			}
			modifier = {
				add = @GH_active_effect_weight
				exists = this
				house ?= { has_variable = POD_portrait_clothing_2_b }
			}
		}
	}
}

GH_portrait_effects_clothing_3_r = {
	usage = game

	clothing_3_r = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = gene_GH_marker_clothing_3_r
				template = marker_clothing_3_r
				value = {
					value = 0
					if = {
						limit = {
							exists = this
							is_alive = yes
							has_variable = POD_portrait_clothing_3_r
						}
						add = var:POD_portrait_clothing_3_r
					}
					else_if = {
						limit = {
							exists = this
							house ?= { has_variable = POD_portrait_clothing_3_r }
						}
						add = house.var:POD_portrait_clothing_3_r
					}
				}
			}
		}
		weight = {
			base = 0
			modifier = {
				add = @GH_override_effect_weight
				exists = this
				is_alive = yes
				has_variable = POD_portrait_clothing_3_r
			}
			modifier = {
				add = @GH_active_effect_weight
				exists = this
				house ?= { has_variable = POD_portrait_clothing_3_r }
			}
		}
	}
}

GH_portrait_effects_clothing_3_g = {
	usage = game
	
	statue_clothing_3_g = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = gene_GH_marker_clothing_3_g
				template = marker_clothing_3_g
				value = {
					value = 0
					if = {
						limit = {
							exists = this
							is_alive = yes
							has_variable = POD_portrait_clothing_3_g
						}
						add = var:POD_portrait_clothing_3_g
					}
					else_if = {
						limit = {
							exists = this
							house ?= { has_variable = POD_portrait_clothing_3_g }
						}
						add = house.var:POD_portrait_clothing_3_g
					}
				}
			}
		}
		weight = {
			base = 0
			modifier = {
				add = @GH_override_effect_weight
				exists = this
				is_alive = yes
				has_variable = POD_portrait_clothing_3_g
			}
			modifier = {
				add = @GH_active_effect_weight
				exists = this
				house ?= { has_variable = POD_portrait_clothing_3_g }
			}
		}
	}
}

GH_portrait_effects_clothing_3_b = {
	usage = game
	
	statue_clothing_3_b = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = gene_GH_marker_clothing_3_b
				template = marker_clothing_3_b
				value = {
					value = 0
					if = {
						limit = {
							exists = this
							is_alive = yes
							has_variable = POD_portrait_clothing_3_b
						}
						add = var:POD_portrait_clothing_3_b
					}
					else_if = {
						limit = {
							exists = this
							house ?= { has_variable = POD_portrait_clothing_3_b }
						}
						add = house.var:POD_portrait_clothing_3_b
					}
				}
			}
		}
		weight = {
			base = 0
			modifier = {
				add = @GH_override_effect_weight
				exists = this
				is_alive = yes
				has_variable = POD_portrait_clothing_3_b
			}
			modifier = {
				add = @GH_active_effect_weight
				exists = this
				house ?= { has_variable = POD_portrait_clothing_3_b }
			}
		}
	}
}

GH_portrait_effects_clothing_4_r = {
	usage = game

	clothing_4_r = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = gene_GH_marker_clothing_4_r
				template = marker_clothing_4_r
				value = {
					value = 0
					if = {
						limit = {
							exists = this
							is_alive = yes
							has_variable = POD_portrait_clothing_4_r
						}
						add = var:POD_portrait_clothing_4_r
					}
					else_if = {
						limit = {
							exists = this
							house ?= { has_variable = POD_portrait_clothing_4_r }
						}
						add = house.var:POD_portrait_clothing_4_r
					}
				}
			}
		}
		weight = {
			base = 0
			modifier = {
				add = @GH_override_effect_weight
				exists = this
				is_alive = yes
				has_variable = POD_portrait_clothing_4_r
			}
			modifier = {
				add = @GH_active_effect_weight
				exists = this
				house ?= { has_variable = POD_portrait_clothing_4_r }
			}
		}
	}
}

GH_portrait_effects_clothing_4_g = {
	usage = game
	
	statue_clothing_4_g = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = gene_GH_marker_clothing_4_g
				template = marker_clothing_4_g
				value = {
					value = 0
					if = {
						limit = {
							exists = this
							is_alive = yes
							has_variable = POD_portrait_clothing_4_g
						}
						add = var:POD_portrait_clothing_4_g
					}
					else_if = {
						limit = {
							exists = this
							house ?= { has_variable = POD_portrait_clothing_4_g }
						}
						add = house.var:POD_portrait_clothing_4_g
					}
				}
			}
		}
		weight = {
			base = 0
			modifier = {
				add = @GH_override_effect_weight
				exists = this
				is_alive = yes
				has_variable = POD_portrait_clothing_4_g
			}
			modifier = {
				add = @GH_active_effect_weight
				exists = this
				house ?= { has_variable = POD_portrait_clothing_4_g }
			}
		}
	}
}

GH_portrait_effects_clothing_4_b = {
	usage = game
	
	statue_clothing_4_b = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = gene_GH_marker_clothing_4_b
				template = marker_clothing_4_b
				value = {
					value = 0
					if = {
						limit = {
							exists = this
							is_alive = yes
							has_variable = POD_portrait_clothing_4_b
						}
						add = var:POD_portrait_clothing_4_b
					}
					else_if = {
						limit = {
							exists = this
							house ?= { has_variable = POD_portrait_clothing_4_b }
						}
						add = house.var:POD_portrait_clothing_4_b
					}
				}
			}
		}
		weight = {
			base = 0
			modifier = {
				add = @GH_override_effect_weight
				exists = this
				is_alive = yes
				has_variable = POD_portrait_clothing_4_b
			}
			modifier = {
				add = @GH_active_effect_weight
				exists = this
				house ?= { has_variable = POD_portrait_clothing_4_b }
			}
		}
	}
}

GH_portrait_effects_clothing_5_r = {
	usage = game

	clothing_5_r = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = gene_GH_marker_clothing_5_r
				template = marker_clothing_5_r
				value = {
					value = 0
					if = {
						limit = {
							exists = this
							is_alive = yes
							has_variable = POD_portrait_clothing_5_r
						}
						add = var:POD_portrait_clothing_5_r
					}
					else_if = {
						limit = {
							exists = this
							house ?= { has_variable = POD_portrait_clothing_5_r }
						}
						add = house.var:POD_portrait_clothing_5_r
					}
				}
			}
		}
		weight = {
			base = 0
			modifier = {
				add = @GH_override_effect_weight
				exists = this
				is_alive = yes
				has_variable = POD_portrait_clothing_5_r
			}
			modifier = {
				add = @GH_active_effect_weight
				exists = this
				house ?= { has_variable = POD_portrait_clothing_5_r }
			}
		}
	}
}

GH_portrait_effects_clothing_5_g = {
	usage = game
	
	statue_clothing_5_g = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = gene_GH_marker_clothing_5_g
				template = marker_clothing_5_g
				value = {
					value = 0
					if = {
						limit = {
							exists = this
							is_alive = yes
							has_variable = POD_portrait_clothing_5_g
						}
						add = var:POD_portrait_clothing_5_g
					}
					else_if = {
						limit = {
							exists = this
							house ?= { has_variable = POD_portrait_clothing_5_g }
						}
						add = house.var:POD_portrait_clothing_5_g
					}
				}
			}
		}
		weight = {
			base = 0
			modifier = {
				add = @GH_override_effect_weight
				exists = this
				is_alive = yes
				has_variable = POD_portrait_clothing_5_g
			}
			modifier = {
				add = @GH_active_effect_weight
				exists = this
				house ?= { has_variable = POD_portrait_clothing_5_g }
			}
		}
	}
}

GH_portrait_effects_clothing_5_b = {
	usage = game
	
	statue_clothing_5_b = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = gene_GH_marker_clothing_5_b
				template = marker_clothing_5_b
				value = {
					value = 0
					if = {
						limit = {
							exists = this
							is_alive = yes
							has_variable = POD_portrait_clothing_5_b
						}
						add = var:POD_portrait_clothing_5_b
					}
					else_if = {
						limit = {
							exists = this
							house ?= { has_variable = POD_portrait_clothing_5_b }
						}
						add = house.var:POD_portrait_clothing_5_b
					}
				}
			}
		}
		weight = {
			base = 0
			modifier = {
				add = @GH_override_effect_weight
				exists = this
				is_alive = yes
				has_variable = POD_portrait_clothing_5_b
			}
			modifier = {
				add = @GH_active_effect_weight
				exists = this
				house ?= { has_variable = POD_portrait_clothing_5_b }
			}
		}
	}
}

GH_portrait_effects_clothing_6_r = {
	usage = game

	clothing_6_r = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = gene_GH_marker_clothing_6_r
				template = marker_clothing_6_r
				value = {
					value = 0
					if = {
						limit = {
							exists = this
							is_alive = yes
							has_variable = POD_portrait_clothing_6_r
						}
						add = var:POD_portrait_clothing_6_r
					}
					else_if = {
						limit = {
							exists = this
							house ?= { has_variable = POD_portrait_clothing_6_r }
						}
						add = house.var:POD_portrait_clothing_6_r
					}
				}
			}
		}
		weight = {
			base = 0
			modifier = {
				add = @GH_override_effect_weight
				exists = this
				is_alive = yes
				has_variable = POD_portrait_clothing_6_r
			}
			modifier = {
				add = @GH_active_effect_weight
				exists = this
				house ?= { has_variable = POD_portrait_clothing_6_r }
			}
		}
	}
}

GH_portrait_effects_clothing_6_g = {
	usage = game
	
	statue_clothing_6_g = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = gene_GH_marker_clothing_6_g
				template = marker_clothing_6_g
				value = {
					value = 0
					if = {
						limit = {
							exists = this
							is_alive = yes
							has_variable = POD_portrait_clothing_6_g
						}
						add = var:POD_portrait_clothing_6_g
					}
					else_if = {
						limit = {
							exists = this
							house ?= { has_variable = POD_portrait_clothing_6_g }
						}
						add = house.var:POD_portrait_clothing_6_g
					}
				}
			}
		}
		weight = {
			base = 0
			modifier = {
				add = @GH_override_effect_weight
				exists = this
				is_alive = yes
				has_variable = POD_portrait_clothing_6_g
			}
			modifier = {
				add = @GH_active_effect_weight
				exists = this
				house ?= { has_variable = POD_portrait_clothing_6_g }
			}
		}
	}
}

GH_portrait_effects_clothing_6_b = {
	usage = game
	
	statue_clothing_6_b = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = gene_GH_marker_clothing_6_b
				template = marker_clothing_6_b
				value = {
					value = 0
					if = {
						limit = {
							exists = this
							is_alive = yes
							has_variable = POD_portrait_clothing_6_b
						}
						add = var:POD_portrait_clothing_6_b
					}
					else_if = {
						limit = {
							exists = this
							house ?= { has_variable = POD_portrait_clothing_6_b }
						}
						add = house.var:POD_portrait_clothing_6_b
					}
				}
			}
		}
		weight = {
			base = 0
			modifier = {
				add = @GH_override_effect_weight
				exists = this
				is_alive = yes
				has_variable = POD_portrait_clothing_6_b
			}
			modifier = {
				add = @GH_active_effect_weight
				exists = this
				house ?= { has_variable = POD_portrait_clothing_6_b }
			}
		}
	}
}

GH_portrait_effects_clothing_7_r = {
	usage = game

	clothing_7_r = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = gene_GH_marker_clothing_7_r
				template = marker_clothing_7_r
				value = {
					value = 0
					if = {
						limit = {
							exists = this
							is_alive = yes
							has_variable = POD_portrait_clothing_7_r
						}
						add = var:POD_portrait_clothing_7_r
					}
					else_if = {
						limit = {
							exists = this
							house ?= { has_variable = POD_portrait_clothing_7_r }
						}
						add = house.var:POD_portrait_clothing_7_r
					}
				}
			}
		}
		weight = {
			base = 0
			modifier = {
				add = @GH_override_effect_weight
				exists = this
				is_alive = yes
				has_variable = POD_portrait_clothing_7_r
			}
			modifier = {
				add = @GH_active_effect_weight
				exists = this
				house ?= { has_variable = POD_portrait_clothing_7_r }
			}
		}
	}
}

GH_portrait_effects_clothing_7_g = {
	usage = game
	
	statue_clothing_7_g = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = gene_GH_marker_clothing_7_g
				template = marker_clothing_7_g
				value = {
					value = 0
					if = {
						limit = {
							exists = this
							is_alive = yes
							has_variable = POD_portrait_clothing_7_g
						}
						add = var:POD_portrait_clothing_7_g
					}
					else_if = {
						limit = {
							exists = this
							house ?= { has_variable = POD_portrait_clothing_7_g }
						}
						add = house.var:POD_portrait_clothing_7_g
					}
				}
			}
		}
		weight = {
			base = 0
			modifier = {
				add = @GH_override_effect_weight
				exists = this
				is_alive = yes
				has_variable = POD_portrait_clothing_7_g
			}
			modifier = {
				add = @GH_active_effect_weight
				exists = this
				house ?= { has_variable = POD_portrait_clothing_7_g }
			}
		}
	}
}

GH_portrait_effects_clothing_7_b = {
	usage = game
	
	statue_clothing_7_b = {
		dna_modifiers = {
			morph = {
				mode = add
				gene = gene_GH_marker_clothing_7_b
				template = marker_clothing_7_b
				value = {
					value = 0
					if = {
						limit = {
							exists = this
							is_alive = yes
							has_variable = POD_portrait_clothing_7_b
						}
						add = var:POD_portrait_clothing_7_b
					}
					else_if = {
						limit = {
							exists = this
							house ?= { has_variable = POD_portrait_clothing_7_b }
						}
						add = house.var:POD_portrait_clothing_7_b
					}
				}
			}
		}
		weight = {
			base = 0
			modifier = {
				add = @GH_override_effect_weight
				exists = this
				is_alive = yes
				has_variable = POD_portrait_clothing_7_b
			}
			modifier = {
				add = @GH_active_effect_weight
				exists = this
				house ?= { has_variable = POD_portrait_clothing_7_b }
			}
		}
	}
}