Skip to content

Commit

Permalink
grah
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkSuckerberg committed Dec 4, 2024
1 parent 255ce11 commit de52db7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/modules/cargo/console.dm
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
var/datum/overmap/outpost/current_outpost = current_ship.docked_to
if(istype(current_ship.docked_to))
var/datum/supply_pack/current_pack = locate(params["ref"]) in current_outpost.supply_packs
var/same_faction = current_pack.faction ? current_pack.faction.allowed_faction(current_ship.faction) : FALSE
var/same_faction = current_pack.faction ? current_pack.faction.allowed_faction(current_ship.source_template.faction) : FALSE
var/total_cost = (same_faction && current_pack.faction_discount) ? current_pack.cost - (current_pack.cost * (current_pack.faction_discount * 0.01)) : current_pack.cost
if(!current_pack || !charge_account?.has_money(total_cost))
return
Expand Down Expand Up @@ -292,7 +292,7 @@
)
if((current_pack.hidden))
continue
var/same_faction = current_pack.faction ? current_pack.faction.allowed_faction(current_ship.faction) : FALSE
var/same_faction = current_pack.faction ? current_pack.faction.allowed_faction(current_ship.source_template.faction) : FALSE
var/discountedcost = (same_faction && current_pack.faction_discount) ? current_pack.cost - (current_pack.cost * (current_pack.faction_discount * 0.01)) : null
if(current_pack.faction_locked && !same_faction)
continue
Expand Down

0 comments on commit de52db7

Please sign in to comment.