mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 02:54:41 +01:00
Holoparasites are now discountable (#25943)
* Discount the parasite! * Fix testing values * More testing values gone * Carp scroll not discountable again
This commit is contained in:
@@ -30,13 +30,11 @@ GLOBAL_LIST_INIT(uplink_items, subtypesof(/datum/uplink_item))
|
||||
var/datum/uplink_item/A = new I.type
|
||||
var/discount = 0.5
|
||||
A.limited_stock = 1
|
||||
I.refundable = FALSE
|
||||
A.refundable = FALSE
|
||||
if(A.cost >= 100)
|
||||
discount *= 0.5 // If the item costs 100TC or more, it's only 25% off.
|
||||
A.cost = max(round(A.cost * (1-discount)),1)
|
||||
A.cost = max(round(A.cost * (1 - discount)), 1)
|
||||
A.category = "Discounted Gear"
|
||||
A.name += " ([round(((initial(A.cost)-A.cost)/initial(A.cost))*100)]% off!)"
|
||||
A.name += " ([round(((initial(A.cost) - A.cost) / initial(A.cost)) * 100)]% off!)"
|
||||
A.job = null // If you get a job specific item selected, actually lets you buy it in the discount section
|
||||
A.species = null //same as above for species speific items
|
||||
A.reference = "DIS[newreference]"
|
||||
@@ -106,6 +104,8 @@ GLOBAL_LIST_INIT(uplink_items, subtypesof(/datum/uplink_item))
|
||||
if(item && !uses_special_spawn)
|
||||
return new item(loc)
|
||||
|
||||
if(limited_stock)
|
||||
limited_stock -= 1 // In case we are handling discount items differently
|
||||
return UPLINK_SPECIAL_SPAWNING
|
||||
|
||||
/datum/uplink_item/proc/description()
|
||||
|
||||
@@ -424,13 +424,19 @@
|
||||
reference = "HPA"
|
||||
desc = "Though capable of near sorcerous feats via use of hardlight holograms and nanomachines, they require an organic host as a home base and source of fuel. \
|
||||
The holoparasites are unable to incoporate themselves to changeling and vampire agents."
|
||||
item = /obj/item/storage/box/syndie_kit/guardian
|
||||
item = /obj/item/storage/box/syndie_kit/guardian/uplink
|
||||
excludefrom = list(UPLINK_TYPE_NUCLEAR, UPLINK_TYPE_SST)
|
||||
cost = 60
|
||||
refund_path = /obj/item/guardiancreator/tech/choose
|
||||
refundable = TRUE
|
||||
surplus = 0 // This being refundable makes this a big no no in my mind.
|
||||
can_discount = FALSE
|
||||
uses_special_spawn = TRUE
|
||||
|
||||
/datum/uplink_item/dangerous/guardian/spawn_item(turf/loc, obj/item/uplink/U)
|
||||
if(..() != UPLINK_SPECIAL_SPAWNING)
|
||||
return FALSE
|
||||
|
||||
new /obj/item/storage/box/syndie_kit/guardian/uplink(loc, cost)
|
||||
|
||||
/datum/uplink_item/stealthy_weapons/martialarts
|
||||
name = "Martial Arts Scroll"
|
||||
|
||||
Reference in New Issue
Block a user