RynthSuite as of 2026-10-05 (internal 8b7d487): navigation no longer stalls after doorway turns, faster target and attack, corpses used from a distance and closed after looting, patrol wall clearance, add-to-loot-profile from an item, WCID loot rules, scroll and slayer fixes, release 2026.10.5.1
This commit is contained in:
parent
12ca25f911
commit
53438c65c1
29 changed files with 3951 additions and 86 deletions
|
|
@ -988,10 +988,16 @@ public class WorldObjectCache
|
|||
/// Read an STypeInt property from an object via CBaseQualities::InqInt.
|
||||
/// Returns defaultValue if the API is unavailable or the property is not set.
|
||||
/// </summary>
|
||||
/// <summary>Decal's synthetic LongValueKey "Type" (0x0D000000): the object's weenie class id
|
||||
/// (WCID). VTank profiles match WCIDs with it ("loot everything that isn't retail").</summary>
|
||||
public const uint DecalTypeKey = 0x0D000000;
|
||||
|
||||
public int GetIntProperty(int id, uint stype, int defaultValue)
|
||||
{
|
||||
if (!_host.HasGetObjectIntProperty) return defaultValue;
|
||||
uint uid = unchecked((uint)id);
|
||||
if (stype == DecalTypeKey)
|
||||
return _host.HasGetObjectWcid && _host.TryGetObjectWcid(uid, out uint wcid) ? unchecked((int)wcid) : defaultValue;
|
||||
if (!_host.HasGetObjectIntProperty) return defaultValue;
|
||||
return _host.TryGetObjectIntProperty(uid, stype, out int v) ? v : defaultValue;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue