Add sorting, filtering, and new columns to WeaponTable
Enhanced the `MudDataGrid` in `WeaponTable` by enabling multiple sorting and filtering while adding new "Faction" and "Immortal" columns. Extended `EntityModel` and `DATA` to support faction and immortal data for the table. Added "Neutral" faction and new entity "Pyre Miner" to the data model.
This commit is contained in:
@@ -228,6 +228,16 @@ public class DATA
|
||||
new EntityModel(DataType.FACTION_Khardu, EntityType.Faction, true)
|
||||
.AddPart(new EntityInfoModel { Name = "Khardu" })
|
||||
},
|
||||
// Factions
|
||||
// Neutral
|
||||
{
|
||||
DataType.FACTION_Neutral,
|
||||
new EntityModel(DataType.FACTION_Neutral, EntityType.Faction)
|
||||
.AddPart(new EntityInfoModel
|
||||
{
|
||||
Name = "Neutral"
|
||||
})
|
||||
},
|
||||
// Immortals
|
||||
// Aru
|
||||
{
|
||||
@@ -371,7 +381,6 @@ public class DATA
|
||||
Description = "Provides a fully upgraded base worth of alloy.",
|
||||
Notes = "Revives in 40 seconds when destroyed."
|
||||
})
|
||||
.AddPart(new EntityFactionModel { Faction = DataType.NEUTRAL_PyreCamp })
|
||||
.AddPart(new EntityFactionModel { Faction = DataType.FACTION_Neutral })
|
||||
.AddPart(new EntityHarvestModel
|
||||
{
|
||||
@@ -3637,7 +3646,17 @@ public class DATA
|
||||
})
|
||||
.AddPart(new EntityVitalityModel
|
||||
{ Health = 850, DefenseLayer = 200, Armor = ArmorType.Heavy, IsStructure = true })
|
||||
}
|
||||
},
|
||||
{
|
||||
DataType.NEUTRAL_PyreMiner,
|
||||
new EntityModel(DataType.NEUTRAL_PyreMiner, EntityType.Building)
|
||||
.AddPart(new EntityInfoModel
|
||||
{
|
||||
Name = "Pyre Miner",
|
||||
Description = "Passively harvest pyre.",
|
||||
Notes = ""
|
||||
})
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user