make attrib matching game specific
This commit is contained in:
parent
5a69d2acf5
commit
7565501c19
3 changed files with 30 additions and 25 deletions
|
|
@ -15,6 +15,7 @@ splatoon:
|
||||||
features:
|
features:
|
||||||
- prudpv1
|
- prudpv1
|
||||||
- v3-8-15
|
- v3-8-15
|
||||||
|
- splatoon
|
||||||
settings:
|
settings:
|
||||||
AUTH_REPORT_VERSION: "branch:origin/project/wup-agmj build:3_8_15_2004_0"
|
AUTH_REPORT_VERSION: "branch:origin/project/wup-agmj build:3_8_15_2004_0"
|
||||||
RNEX_VIRTUAL_PORT_INSECURE: "1:10"
|
RNEX_VIRTUAL_PORT_INSECURE: "1:10"
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,7 @@ v3-5-0 = ["v3-4-0"]
|
||||||
v3-8-15 = ["v3-5-0"]
|
v3-8-15 = ["v3-5-0"]
|
||||||
v4-3-11 = ["v3-8-15"]
|
v4-3-11 = ["v3-8-15"]
|
||||||
nx = ["big_pid"]
|
nx = ["big_pid"]
|
||||||
|
splatoon = []
|
||||||
datastore = ["database-support", "v3-8-15", "dep:aws-sdk-s3", "dep:aws-config"]
|
datastore = ["database-support", "v3-8-15", "dep:aws-sdk-s3", "dep:aws-config"]
|
||||||
database-support = ["dep:sqlx"]
|
database-support = ["dep:sqlx"]
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -397,32 +397,35 @@ impl ExtendedMatchmakeSession {
|
||||||
return Ok(false);
|
return Ok(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
if search_criteria
|
#[cfg(feature = "splatoon")]
|
||||||
.attribs
|
|
||||||
.get(0)
|
|
||||||
.map(|str| str.parse().ok())
|
|
||||||
.flatten()
|
|
||||||
!= self.session.attributes.get(0).map(|v| *v)
|
|
||||||
{
|
{
|
||||||
return Ok(false);
|
if search_criteria
|
||||||
}
|
.attribs
|
||||||
if search_criteria
|
.get(0)
|
||||||
.attribs
|
.map(|str| str.parse().ok())
|
||||||
.get(2)
|
.flatten()
|
||||||
.map(|str| str.parse().ok())
|
!= self.session.attributes.get(0).map(|v| *v)
|
||||||
.flatten()
|
{
|
||||||
!= self.session.attributes.get(2).map(|v| *v)
|
return Ok(false);
|
||||||
{
|
}
|
||||||
return Ok(false);
|
if search_criteria
|
||||||
}
|
.attribs
|
||||||
if search_criteria
|
.get(2)
|
||||||
.attribs
|
.map(|str| str.parse().ok())
|
||||||
.get(3)
|
.flatten()
|
||||||
.map(|str| str.parse().ok())
|
!= self.session.attributes.get(2).map(|v| *v)
|
||||||
.flatten()
|
{
|
||||||
!= self.session.attributes.get(3).map(|v| *v)
|
return Ok(false);
|
||||||
{
|
}
|
||||||
return Ok(false);
|
if search_criteria
|
||||||
|
.attribs
|
||||||
|
.get(3)
|
||||||
|
.map(|str| str.parse().ok())
|
||||||
|
.flatten()
|
||||||
|
!= self.session.attributes.get(3).map(|v| *v)
|
||||||
|
{
|
||||||
|
return Ok(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(true)
|
Ok(true)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue