diff --git a/binaries/data/mods/public/gui/session/input.js b/binaries/data/mods/public/gui/session/input.js
index 189a368..c716774 100644
|
a
|
b
|
function getActionInfo(action, target) |
| 229 | 229 | } |
| 230 | 230 | else if (targetState.resourceSupply) |
| 231 | 231 | { |
| 232 | | var resourceType = targetState.resourceSupply.type.specific; |
| | 232 | var resourceType = targetState.resourceSupply.type; |
| 233 | 233 | if (targetState.resourceSupply.type.generic === "treasure") |
| 234 | 234 | { |
| 235 | 235 | cursor = "action-gather-" + targetState.resourceSupply.type.generic; |
diff --git a/binaries/data/mods/public/simulation/components/UnitAI.js b/binaries/data/mods/public/simulation/components/UnitAI.js
index 2d38f61..f94897e 100644
|
a
|
b
|
var UnitFsmSpec = { |
| 942 | 942 | var nearby = this.FindNearbyResource(function (ent, type, template) { |
| 943 | 943 | return ( |
| 944 | 944 | ent != oldTarget |
| 945 | | && type.specific == oldType.specific |
| 946 | | && (type.specific != "meat" || oldTemplate == template) |
| | 945 | && ((type.generic == "treasure" && oldType.generic == "treasure") |
| | 946 | || (type.specific == oldType.specific |
| | 947 | && (type.specific != "meat" || oldTemplate == template))) |
| 947 | 948 | ); |
| 948 | 949 | }); |
| 949 | 950 | if (nearby) |
| … |
… |
var UnitFsmSpec = { |
| 977 | 978 | // Also don't switch to a different type of huntable animal |
| 978 | 979 | var nearby = this.FindNearbyResource(function (ent, type, template) { |
| 979 | 980 | return ( |
| 980 | | type.specific == resourceType |
| 981 | | && (type.specific != "meat" || resourceTemplate == template) |
| | 981 | (type.generic == "treasure" && resourceType.generic == "treasure") |
| | 982 | || (type.specific == resourceType.specific |
| | 983 | && (type.specific != "meat" || resourceTemplate == template)) |
| 982 | 984 | ); |
| 983 | 985 | }); |
| 984 | 986 | |
| … |
… |
var UnitFsmSpec = { |
| 1126 | 1128 | // Also don't switch to a different type of huntable animal |
| 1127 | 1129 | var nearby = this.FindNearbyResource(function (ent, type, template) { |
| 1128 | 1130 | return ( |
| 1129 | | type.specific == resourceType.specific |
| 1130 | | && (type.specific != "meat" || resourceTemplate == template) |
| | 1131 | (type.generic == "treasure" && resourceType.generic == "treasure") |
| | 1132 | || (type.specific == resourceType.specific |
| | 1133 | && (type.specific != "meat" || resourceTemplate == template)) |
| 1131 | 1134 | ); |
| 1132 | 1135 | }); |
| 1133 | 1136 | if (nearby) |