|
|
@@ -46,7 +46,10 @@ public class PropMgr {
|
|
|
List<PropConfig> list = new List<PropConfig>();
|
|
|
foreach (int id in propConfigIds)
|
|
|
{
|
|
|
- list.Add((PropConfig) propConfigs[id]);
|
|
|
+ PropConfig propConfig = (PropConfig) propConfigs[id];
|
|
|
+ if (propConfig.inShop) {
|
|
|
+ list.Add(propConfig);
|
|
|
+ }
|
|
|
}
|
|
|
return list;
|
|
|
}
|
|
|
@@ -138,12 +141,16 @@ public class PropConfig {
|
|
|
public string[] detail = {null};
|
|
|
public int difficulty = -1;
|
|
|
public int diamond = 0;
|
|
|
+ public bool inShop = true;
|
|
|
}
|
|
|
public class PropScaleAim : PropConfig {
|
|
|
public int scaleValue = 0;
|
|
|
public PropScaleAim(int baseID, int scaleValue)
|
|
|
{
|
|
|
this.scaleValue = scaleValue;
|
|
|
+ if (this.scaleValue == 1) {
|
|
|
+ this.inShop = false;
|
|
|
+ }
|
|
|
id = baseID + scaleValue;
|
|
|
type = 1;
|
|
|
iconID = 1000;
|
|
|
@@ -157,6 +164,9 @@ public class PropScaleShoot : PropConfig {
|
|
|
public PropScaleShoot(int baseID, int scaleValue)
|
|
|
{
|
|
|
this.scaleValue = scaleValue;
|
|
|
+ if (this.scaleValue == 1) {
|
|
|
+ this.inShop = false;
|
|
|
+ }
|
|
|
id = baseID + scaleValue;
|
|
|
type = 2;
|
|
|
iconID = 1001;
|