You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"dynamic_line": "I'm a priest or guide of a sort. I sing the hymns along my companions so that we may learn to live in unity, both with each other and with our ailing world.",
@@ -1090,7 +1091,6 @@ Special attacks have been moved to [MONSTER_SPECIAL_ATTACKS.md](MONSTER_SPECIAL_
1090
1091
1091
1092
#### Flags
1092
1093
1093
-
- ```HARDTOHIT``` Whenever something attacks you, RNG gets rolled twice and you get the better result.
1094
1094
- ```UNARMED_BONUS``` You get a bonus to unarmed bash and cut damage equal to unarmed_skill/2 up to 4.
1095
1095
1096
1096
### Categories
@@ -1515,6 +1515,7 @@ Gun fault flags:
1515
1515
- ```NO_MINIMAL_HEALING``` This mutation disables the minimal healing of 1 hp a day.
1516
1516
- ```SUPER_HEARING``` You can hear much better than a normal person.
1517
1517
- ```IMMUNE_HEARING_DAMAGE``` Immune to hearing damage from loud sounds.
1518
+
- ```CANNIBAL``` Butcher humans, eat foods with the `CANNIBALISM` and `STRICT_HUMANITARIANISM` flags without a morale penalty
1518
1519
-````CLIMB_NO_LADDER``` Capable of climbing up single-level walls without support.
1519
1520
- ```DEAF``` Makes you deaf.
1520
1521
- ```BLIND``` Makes you blind.
@@ -1550,7 +1551,21 @@ Gun fault flags:
1550
1551
- ```THERMOMETER``` You always know what temperature it is.
1551
1552
- ```CBQ_LEARN_BONUS``` You learn CBQ from the bionic bio_cqb faster.
1552
1553
- ```GILLS``` You can breathe underwater.
1554
+
- ```HARDTOHIT``` Whenever something attacks you, RNG gets rolled twice and you get the better result.
1555
+
- ````HUGE``` Changes your size to `creature_size::huge`. Checked last of the size category flags, if no size flags are found your size defaults to `creature_size::medium`.
1556
+
- ````LARGE``` Changes your size to `creature_size::large`. Checked third of the size category flags.
1557
+
- ```PSYCHOPATH``` Butcher humans without a morale penalty
1558
+
- ```PRED1``` Small morale bonus from foods with the `PREDATOR_FUN` flag. Lower morale panalty from the guilt mondeath effect.
1559
+
- ```PRED2``` Learn combat skills wit double catchup modifier. Resist skill rust on combat skills. Small morale bonus from foods with the `PREDATOR_FUN` flag. Lower morale panalty from the guilt mondeath effect.
1560
+
- ```PRED3``` Learn combat skills wit double catchup modifier. Resist skill rust on combat skills. Medium morale bonus from foods with the `PREDATOR_FUN` flag. Immune to the guilt mondeath effect.
1561
+
- ```PRED4``` Learn combat skills wit triple catchup modifier. Learn combat skills without spending focus. Resist skill rust on combat skills. Large morale bonus from foods with the `PREDATOR_FUN` flag. Immune to the guilt mondeath effect.
1562
+
- ```SAPIOVORE``` Butcher humans without a morale penalty
1563
+
- ````SMALL``` Changes your size to `creature_size::small`. Checked second of the size category flags.
1564
+
- ```STEADY``` Your speed can never go below base speed, bonuses from effects etc can still apply.
1565
+
- ````STRICT_HUMANITARIAN``` You can eat foodstuffs tagged with `STRICT_HUMANITARIANISM` without morale penalties.
1566
+
- ````TINY``` Changes your size to `creature_size::tiny`. Checked first of the size category flags.
1553
1567
- ```WEB_RAPPEL``` You can rappel down staircases and sheer drops of any height.
1554
1568
- ```WALL_CLING``` You can ascend/descend sheer cliffs as long as the tile above borders at least one wall. Chance to slip and fall each step.
1569
+
- ````WALL_CLING_FOURTH``` Same as `WALL_CLING`, but you need four instances of the flag for it to function (ex. four bodyparts with the flag).
1555
1570
- ```WINGS_1``` You have 50% chance to ignore falling traps (including ledges).
1556
-
- ```WINGS_2``` You have 100% chance to ignore falling traps (including ledges).
1571
+
- ```WINGS_2``` You have 100% chance to ignore falling traps (including ledges). Requires two flag instances.
Copy file name to clipboardExpand all lines: doc/NPCs.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -809,7 +809,7 @@ Condition | Type | Description
809
809
`"u_female"`<br/>`"npc_female"` | simple string | `true` if the player character or NPC is female.
810
810
`"u_at_om_location"`<br/>`"npc_at_om_location"` | string | `true` if the player character or NPC is standing on an overmap tile with `u_at_om_location`'s id. The special string `"FACTION_CAMP_ANY"` changes it to return true if the player or NPC is standing on a faction camp overmap tile. The special string `"FACTION_CAMP_START"` changes it to return true if the overmap tile that the player or NPC is standing on can be turned into a faction camp overmap tile.
811
811
`"u_has_trait"`<br/>`"npc_has_trait"` | string | `true` if the player character or NPC has a specific trait. Simpler versions of `u_has_any_trait` and `npc_has_any_trait` that only checks for one trait.
812
-
`"u_has_trait_flag"`<br/>`"npc_has_trait_flag"` | string | `true` if the player character or NPC has any traits with the specific trait flag. More robust versions of `u_has_any_trait` and `npc_has_any_trait`. The special trait flag `"MUTATION_THRESHOLD"` checks to see if the player or NPC has crossed a mutation threshold.
812
+
`"u_has_flag"`<br/>`"npc_has_flag"` | string | `true` if the player character or NPC has the specified character flag. The special trait flag `"MUTATION_THRESHOLD"` checks to see if the player or NPC has crossed a mutation threshold.
813
813
`"u_has_any_trait"`<br/>`"npc_has_any_trait"` | array | `true` if the player character or NPC has any trait or mutation in the array. Used to check multiple specific traits.
814
814
`"u_has_var"`, `"npc_has_var"` | string | `"type": type_str`, `"context": context_str`, and `"value": value_str` are required fields in the same dictionary as `"u_has_var"` or `"npc_has_var"`.<br/>`true` is the player character or NPC has a variable set by `"u_add_var"` or `"npc_add_var"` with the string, `type_str`, `context_str`, and `value_str`.
815
815
`"u_compare_var"`, `"npc_compare_var"` | dictionary | `"type": type_str`, `"context": context_str`, `"op": op_str`, `"value": value_num or variable_object` are required fields, referencing a var as in `"u_add_var"` or `"npc_add_var"`.<br/>`true` if the player character or NPC has a stored variable that is true for the provided operator `op_str` (one of `==`, `!=`, `<`, `>`, `<=`, `>=`) and value (or the value of the variable described by `value` see `variable_object` above).
// If this is a performance problem create a map of flags stored for a character and updated on trait, mutation, bionic add/remove, activate/deactivate, effect gain/loss
10179
-
returnhas_trait_flag( flag ) || has_bionic_with_flag( flag ) ||has_effect_with_flag( flag ) ||
10180
-
has_bodypart_with_flag( flag );
10181
+
returncount_trait_flag( flag ) + count_bionic_with_flag( flag ) +has_effect_with_flag(
0 commit comments