-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cargo fast delivery #21
Merged
Merged
Changes from 4 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
3cd378f
cargo
homexp13 7bf6d6c
full tone
homexp13 3a670e7
no tax
homexp13 cf1cbb3
helg
homexp13 76f5c7d
balloon
homexp13 cde5cca
fast fast
homexp13 4c019b6
old
homexp13 6d99496
ugh
homexp13 b8bd45a
bruh
homexp13 3bf80ec
initialize
homexp13 456b752
...
homexp13 bd14092
Merge branch 'master' into cargo
homexp13 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -417,6 +417,7 @@ GLOBAL_LIST_INIT(blacklisted_cargo_types, typecacheof(list( | |
.["elevator_dir"] = "up" | ||
else | ||
.["elevator"] = "MISSING!" | ||
.["beacon"] = length(GLOB.supply_beacon) ? TRUE : FALSE | ||
|
||
/datum/supply_ui/proc/get_shopping_cart(mob/user) | ||
return SSpoints.shopping_cart | ||
|
@@ -505,11 +506,15 @@ GLOBAL_LIST_INIT(blacklisted_cargo_types, typecacheof(list( | |
var/list/shopping_cart = get_shopping_cart(ui.user) | ||
shopping_cart.Cut() | ||
. = TRUE | ||
// RUTGMC EDIT BEGIN | ||
if("buypersonal") | ||
SSpoints.buy_using_psp(ui.user) | ||
. = TRUE | ||
// RUTGMC EDIT END | ||
if("delivery") | ||
var/datum/supply_order/O = SSpoints.shoppinglist[faction]["[params["id"]]"] | ||
if(!O) | ||
return | ||
SSpoints.fast_delivery(O, ui.user) | ||
. = TRUE | ||
|
||
/datum/supply_ui/requests | ||
tgui_name = "CargoRequest" | ||
|
@@ -571,6 +576,7 @@ GLOBAL_LIST_INIT(blacklisted_cargo_types, typecacheof(list( | |
.["shopping_list_items"] += SSpoints.request_shopping_cart[user.ckey][i] | ||
.["shopping_list_cost"] += SP.cost * SSpoints.request_shopping_cart[user.ckey][SP.type] | ||
.["shopping_list"][SP.type] = list("count" = SSpoints.request_shopping_cart[user.ckey][SP.type]) | ||
.["beacon"] = length(GLOB.supply_beacon) ? TRUE : FALSE | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Зачем дублирующее определение? |
||
|
||
/datum/supply_ui/requests/ui_act(action, list/params, datum/tgui/ui, datum/ui_state/state) | ||
. = ..() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Генерацию листочка наверное можно сделать отдельным проком, если он используется для обычных ящиков.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
с кода лифта брал как там было
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ну и в целом спавн ящика если он настолько совпадает.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
я не хочу трогать код лифта по причине наличия анимации и разного место спавна ящиков
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
и почему то сейчас в коде лифта нет генерации манифестов, странно