shop_sell #47
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "shop_sell"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
nice warez u got there
@ -223,0 +235,4 @@
return Some(10u32)
}
// other item factors?
Some((WeaponShopItem::weapon_from_item(w).price() / 8) as u32)
this (and other
x_from_item
) should beimpl From<WeaponDetail> for WeaponShopItem
. then the code here bew.into().price() / 8
(which might not work due to type inference not inferring enough but should still use standardFrom
trait)@ -847,0 +871,4 @@
sold_item_handle.consume(amount)?;
},
// TODO: put a real error here
Ordering::Greater => {println!("i can't believe you've done this.");},
ItemMangerError::InvalidSale
@ -221,2 +222,4 @@
}
}
pub fn get_sell_price(&self) -> Result<u32, ItemManagerError> {
this made more sense returning an
Option
I thinkPull request closed