Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dwasint committed Sep 8, 2023
1 parent 19e4f1e commit 3e129df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data/cassette_storage/friday.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"side2_icon": "cassette_friday",
"author_ckey": "Dwasint",
"author_name": "Collects-The-Candy",
"approved": 0,
"approved": 1,
"songs": {
"side1": [
"https://www.youtube.com/watch?v=QFdB408xgEE",
Expand Down
3 changes: 1 addition & 2 deletions monkestation/code/modules/cassettes/machines/postbox.dm
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,16 @@

var/obj/item/device/cassette_tape/attacked_tape = weapon
if(attacked_tape.approved_tape)
to_chat(user, span_notice("This tape has already been approved by the Board, it would be a waste of money to send it in again."))
return

///these two parts here should be commented out for local testing without a db
/*
if(user.client.prefs.metacoins < 5000)
to_chat(user, span_notice("Sorry you don't have enough Monkecoins to submit a cassette for review."))
return

if(!living_user.client.prefs.adjust_metacoins(user.client.ckey, -5000, donator_multipler = FALSE))

Check failure on line 28 in monkestation/code/modules/cassettes/machines/postbox.dm

View workflow job for this annotation

GitHub Actions / Run Linters

undefined var: "living_user"

Check warning on line 28 in monkestation/code/modules/cassettes/machines/postbox.dm

View workflow job for this annotation

GitHub Actions / Run Linters

field access requires static type: "client"

Check warning on line 28 in monkestation/code/modules/cassettes/machines/postbox.dm

View workflow job for this annotation

GitHub Actions / Run Linters

field access requires static type: "prefs"

Check warning on line 28 in monkestation/code/modules/cassettes/machines/postbox.dm

View workflow job for this annotation

GitHub Actions / Run Linters

proc call requires static type: "adjust_metacoins"
return
*/
/// this is where it ends
attacked_tape.moveToNullspace()
submit_cassette_for_review(attacked_tape, user)
Expand Down

0 comments on commit 3e129df

Please sign in to comment.