Re-balanced items
This commit is contained in:
4 files changed
+46
-8
No files matched your search
+12
-6
@@ -36,6 +36,7 @@ pub enum ItemType {
|
||||
KillGun,
|
||||
CancelRay,
|
||||
Helmet,
|
||||
TacticalNuke,
|
||||
}
|
||||
|
||||
impl ItemType {
|
||||
@@ -51,6 +52,7 @@ impl ItemType {
|
||||
ItemType::KillGun => "Used to kill people. `!use kill gun @Austin`".to_string(),
|
||||
ItemType::CancelRay => "Used to cancel people. `!use cancel ray @Austin`".to_string(),
|
||||
ItemType::Helmet => "Automatically used to block being killed".to_string(),
|
||||
ItemType::TacticalNuke => "Reset everyone back to the stone age".to_string(),
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -85,6 +87,8 @@ impl FromStr for ItemType {
|
||||
Ok(ItemType::Helmet)
|
||||
} else if item.starts_with("cancelray") {
|
||||
Ok(ItemType::CancelRay)
|
||||
} else if item.starts_with("tacticalnuke") {
|
||||
Ok(ItemType::TacticalNuke)
|
||||
} else {
|
||||
Err(InventoryError::UnkownItem)
|
||||
}
|
||||
@@ -102,6 +106,7 @@ impl Display for ItemType {
|
||||
ItemType::KillGun => "Kill Gun".to_string(),
|
||||
ItemType::Helmet => "Helmet".to_string(),
|
||||
ItemType::CancelRay => "Cancel Ray".to_string(),
|
||||
ItemType::TacticalNuke => "Tactical Nuke".to_string()
|
||||
};
|
||||
|
||||
write!(f, "{}", name)
|
||||
@@ -128,14 +133,15 @@ pub struct InventorySlot {
|
||||
impl InventorySlot {
|
||||
pub fn value(&self) -> i64 {
|
||||
match self.item_type {
|
||||
ItemType::CancelInsurance => 500,
|
||||
ItemType::CancelInsurance => 10_000,
|
||||
ItemType::TheConceptOfLove => 300,
|
||||
ItemType::GoodFortune => 75,
|
||||
ItemType::Nft => 100,
|
||||
ItemType::LicenseToBeHorny => 100,
|
||||
ItemType::KillGun => 1000,
|
||||
ItemType::Helmet => 500,
|
||||
ItemType::CancelRay => 1000,
|
||||
ItemType::Nft => 250,
|
||||
ItemType::LicenseToBeHorny => 250,
|
||||
ItemType::KillGun => 2_000,
|
||||
ItemType::Helmet => 10_000,
|
||||
ItemType::CancelRay => 2_000,
|
||||
ItemType::TacticalNuke => 100_000,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user