Properties: Difference between revisions

1,063 bytes added ,  19:29, 14 September 2022
m
no edit summary
(Add queries for EMP-sensitive things)
mNo edit summary
 
(11 intermediate revisions by 5 users not shown)
Line 3: Line 3:


==Metal==
==Metal==
Metal items can [[rusted | rust]] and be pulled by {{Favilink | pulsed field magnet | plural}}. Creatures can be metallic as well. This means their entire body becomes pulled if magnetic pulsed, and will refuse to properly function if rusted.
Metal items can [[rusted | rust]], be [[magnetized]], and be pulled by {{Favilink | pulsed field magnet | plural}}. Creatures can be metallic as well. This means their entire body becomes pulled if magnetic pulsed, and will refuse to properly function if rusted. Metal items (but not creatures) cannot be [[burning|set on fire]].{{Code Reference|class=Metal|method=MakeNonflammable}}


For modding purposes, this property corresponds to the <code>Metal</code> object part.
For modding purposes, this property corresponds to the <code>Metal</code> object part.


==Organic==
==Organic==
{{Missing info | Describe the consequences of this property.}}


For modding purposes, this property corresponds to having a zero <code>Inorganic</code> integer property.
A thing that is organic<ref>For modding purposes, “organic” means having an <code>Inorganic</code> integer property set to 0, rather than 1.</ref>:
 
* cannot safely contain {{Favilink | acid}}{{Code Reference | namespace = XRL.Liquids | class = LiquidAcid | method = SafeContainer}}
* can be healed by {{Favilink | convalessence}}{{Code Reference | namespace = XRL.Liquids | class = LiquidConvalessence | method = GetHealingLocationValue}}
* turns to {{Favilink | ashes}} when destroyed by fire or light damage{{Code Reference | class = BurnToAshesIfOrganic}}
* is vulnerable to a {{Favilink | thirst thistle}}'s thirsting effect{{Code Reference | class = ThirstOnHit}}


==Cannot be removed once equipped==
==Cannot be removed once equipped==
{{Missing info | This section requires clean-up - in particular, the "Cursed" tag and internal terminology no longer exists.}}
Items with this property can't be unequipped normally by the player, but can be unequipped under other circumstances by the game, such as when they're destroyed.
Items with this property can't be unequipped normally by the player, but can be unequipped under other circumstances by the game, such as when they're destroyed.


Line 19: Line 22:


==EMP Sensitive==
==EMP Sensitive==
This item will deactivate if hit by an EMP blast, usually from [[Electromagnetic Impulse]] or an EMP grenade.
This item will deactivate if hit by an EMP blast, usually from [[Electromagnetic Pulse]] or an EMP grenade.


For modding purposes, this property usually corresponds to having an <code>IsEMPSensitive</code> attribute of <code>true</code> on an appropriate object part. There are several such parts; refer to <code>ObjectBlueprints.xml</code> for examples. There is a generic base class that supports parts with involved conditional behavior, called <code>IActivePart</code>; see [[Modding:Active Parts]] for details. <code>IsEMPSensitive</code>is a field on that class.
For modding purposes, this property usually corresponds to having an <code>IsEMPSensitive</code> attribute of <code>true</code> on an appropriate object part. There are several such parts; refer to <code>ObjectBlueprints.xml</code> for examples. There is a generic base class that supports parts with involved conditional behavior, called <code>IActivePart</code>; see [[Modding:Active Parts]] for details. <code>IsEMPSensitive</code>is a field on that class.
Line 33: Line 36:
   | fields=
   | fields=
       CONCAT('{{((}}favilink id{{!}}',CONCAT(GD.ObjectID),'{{))}}')=Object
       CONCAT('{{((}}favilink id{{!}}',CONCAT(GD.ObjectID),'{{))}}')=Object
   | where=EI.Info LIKE '%EMP Sensitive,,,%' AND GD._pageNamespace = 0 AND GD.Categories = 'Furniture'
   | where=EI.Info LIKE '%EMP Sensitive,,,%' AND GD._pageNamespace = 0 AND (GD.Categories = 'Furniture' OR GD.Categories = 'Chairs')
  | format=ul
  | order by=GD._pageName
}}
==== EMP-Sensitive Walls ====
{{#cargo_query:
  | tables=GeneralData=GD,ExtraInfo=EI
  | join on=GD.JoinKey=EI.JoinKey
  | fields=
      CONCAT('{{((}}favilink id{{!}}',CONCAT(GD.ObjectID),'{{))}}')=Object
  | where=EI.Info LIKE '%EMP Sensitive,,,%' AND GD._pageNamespace = 0 AND (GD.Categories = 'Walls' OR GD.Categories = 'Fences' OR GD.Categories = 'Vents' OR GD.Categories = 'Glass Walls' OR GD.Categories = 'Tech Walls' OR GD.Categories = 'Gemstone Walls' OR GD.Categories = 'Sultan Walls' OR GD.Categories = 'Murals' OR GD.Categories = 'Holographic Walls' OR GD.Categories = 'Force Fields')
   | format=ul
   | format=ul
   | order by=GD._pageName
   | order by=GD._pageName
Line 56: Line 69:
       CONCAT('{{((}}favilink id{{!}}',CONCAT(GD.ObjectID),'{{))}}')=Object
       CONCAT('{{((}}favilink id{{!}}',CONCAT(GD.ObjectID),'{{))}}')=Object
   | where=EI.Info LIKE '%EMP Sensitive,,,%' AND GD._pageNamespace = 0 AND (GD.Categories = 'Rifles' OR GD.Categories = 'Pistols' OR GD.Categories = 'Bows' OR GD.Categories = 'Heavy Weapons' OR GD.Categories = 'Thrown Weapons' OR GD.ObjectID = 'Point-Defense Drone')
   | where=EI.Info LIKE '%EMP Sensitive,,,%' AND GD._pageNamespace = 0 AND (GD.Categories = 'Rifles' OR GD.Categories = 'Pistols' OR GD.Categories = 'Bows' OR GD.Categories = 'Heavy Weapons' OR GD.Categories = 'Thrown Weapons' OR GD.ObjectID = 'Point-Defense Drone')
  | format=ul
  | order by=GD._pageName
}}
</div>
<div style="margin-right: 2.5em;">
==== EMP-Sensitive Equipment ====
{{#cargo_query:
  | tables=GeneralData=GD,ExtraInfo=EI,ItemsTable=IT
  | join on=GD.JoinKey=EI.JoinKey,GD.JoinKey=IT.JoinKey
  | fields=
      CONCAT('{{((}}favilink id{{!}}',CONCAT(GD.ObjectID),'{{))}}')=Object
  | where=EI.Info LIKE '%EMP Sensitive,,,%' AND GD._pageNamespace = 0 AND IT.WornOn IS NOT NULL
   | format=ul
   | format=ul
   | order by=GD._pageName
   | order by=GD._pageName
Line 86: Line 87:
</div>
</div>
<div style="margin-right: 2.5em;">
<div style="margin-right: 2.5em;">
==== Other EMP-Sensitive Objects ====
==== Other EMP-Sensitive Equipment/Objects ====
{{#cargo_query:
{{#cargo_query:
   | tables=GeneralData=GD,ExtraInfo=EI,ItemsTable=IT,CreatureFactions=CF
   | tables=GeneralData=GD,ExtraInfo=EI,CreatureFactions=CF
   | join on=GD.JoinKey=EI.JoinKey,GD.JoinKey=IT.JoinKey,GD.ObjectID=CF.ObjectID
   | join on=GD.JoinKey=EI.JoinKey,GD.ObjectID=CF.ObjectID
   | fields=
   | fields=
       CONCAT('{{((}}favilink id{{!}}',CONCAT(GD.ObjectID),'{{))}}')=Object
       CONCAT('{{((}}favilink id{{!}}',CONCAT(GD.ObjectID),'{{))}}')=Object
   | where=EI.Info LIKE '%EMP Sensitive,,,%' AND GD._pageNamespace = 0 AND CF.Value IS NULL AND IT.WornOn IS NULL AND (GD.Categories <> 'Melee Weapons' AND GD.Categories <> 'Axes' AND GD.Categories <> 'Long Blades' AND GD.Categories <> 'Short Blades' AND GD.Categories <> 'Cudgels' AND GD.Categories <> 'Rifles' AND GD.Categories <> 'Pistols' AND GD.Categories <> 'Bows' AND GD.Categories <> 'Heavy Weapons' AND GD.Categories <> 'Thrown Weapons' AND GD.ObjectID <> 'Point-Defense Drone' AND GD.Categories <> 'Furniture')
   | where=EI.Info LIKE '%EMP Sensitive,,,%' AND GD._pageNamespace = 0 AND CF.Value IS NULL AND (GD.Categories <> 'Melee Weapons' AND GD.Categories <> 'Axes' AND GD.Categories <> 'Long Blades' AND GD.Categories <> 'Short Blades' AND GD.Categories <> 'Cudgels' AND GD.Categories <> 'Rifles' AND GD.Categories <> 'Pistols' AND GD.Categories <> 'Bows' AND GD.Categories <> 'Heavy Weapons' AND GD.Categories <> 'Thrown Weapons' AND GD.ObjectID <> 'Point-Defense Drone' AND GD.Categories <> 'Furniture' AND GD.Categories <> 'Chairs' AND GD.Categories <> 'Walls' AND GD.Categories <> 'Fences' AND GD.Categories <> 'Vents' AND GD.Categories <> 'Glass Walls' AND GD.Categories <> 'Tech Walls' AND GD.Categories <> 'Gemstone Walls' AND GD.Categories <> 'Sultan Walls' AND GD.Categories <> 'Murals' AND GD.Categories <> 'Holographic Walls' AND GD.Categories <> 'Force Fields')
   | format=ul
   | format=ul
   | order by=GD.Categories,GD._pageName
   | order by=GD._pageName
}}
}}
</div>
</div>
Line 107: Line 108:


== Occluding ==
== Occluding ==
Occluding objects are objects that block a character's field of view. Objects that are occluding also block non-seeping [[gases]] from passing through their tile. In terms of AI, even though the enemy knows their target is behind an occluding object, and the object does not block bullets, they will still refuse to fire until they are able to see their target again. Occluding items can also prevent NPCs from witnessing the player stealing an object. The most common class of objects that occlude light are [[:Category:Walls|walls]] (including closed [[:Category:Doors|doors]] and [[:Category:Wall Traps|wall traps]]). Other occluding objects are shown below.<ref>Occlusion can be set on an object by adding <code>Occluding="true"</code> in the object's <code>Render</code> part.</ref>
Occluding objects are objects that block a character's field of view. Objects that are occluding also block non-seeping [[gases]] from passing through their tile. In terms of AI, even though the enemy knows their target is behind an occluding object, and the object does not block bullets, they will still refuse to fire until they are able to see their target again. Occluding items can also prevent NPCs from witnessing the player stealing an object. The most common class of objects that occlude light are [[walls]] (including closed [[:Category:Doors|doors]] and [[:Category:Vents|vents]]). Other occluding objects are shown below.<ref>Occlusion can be set on an object by adding <code>Occluding="true"</code> in the object's <code>Render</code> part.</ref>


<div style="display:flex;flex-wrap:wrap;">
<div style="display:flex;flex-wrap:wrap;">
Line 136: Line 137:
<div style="margin-right: 2.5em;">
<div style="margin-right: 2.5em;">
====Occluding Objects====
====Occluding Objects====
Non-plant, non-statue, non-wall<br>objectsthat are occluding.
Non-plant, non-statue, non-wall<br>objects that are occluding.
{{#cargo_query:
{{#cargo_query:
   | tables=GeneralData=GD,ExtraInfo=EI,CreatureFactions=CF
   | tables=GeneralData=GD,ExtraInfo=EI,CreatureFactions=CF
Line 178: Line 179:
<references/>
<references/>


{{Mechanics Navbox}}
[[Category:Mechanics]]
[[Category:Mechanics]]