From a7d2445693ddb122500d8e7738724f4c2b2a4d8d Mon Sep 17 00:00:00 2001 From: "giacomand@gmail.com" Date: Sun, 23 Dec 2012 01:01:25 +0000 Subject: [PATCH] -You can now sell plasma sheets for supply points. Conversion rate is 3 plasma sheets for 1 point. The rate is adjustable. -Permission from Erro to remove the "redeem a mech by colllecting all the toys" feature. Removed the description from the mech toys too. -Fixed a possible exploit with ghost following to create more than one follow loop. -Re-added send mob to the player panel. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5377 316c924e-a436-60f5-8080-3fe189b3f50e --- code/defines/obj/toy.dm | 22 +++++++------- code/game/supplyshuttle.dm | 34 ++++++++-------------- code/modules/admin/admin.dm | 3 +- code/modules/admin/verbs/adminjump.dm | 18 +++++++----- code/modules/mob/dead/observer/observer.dm | 6 ++++ html/changelog.html | 9 +++++- 6 files changed, 49 insertions(+), 43 deletions(-) diff --git a/code/defines/obj/toy.dm b/code/defines/obj/toy.dm index afddd617a46..d2814be14a1 100644 --- a/code/defines/obj/toy.dm +++ b/code/defines/obj/toy.dm @@ -30,56 +30,56 @@ /obj/item/toy/prize/ripley name = "toy ripley" - desc = "Mini-Mecha action figure! Collect them all! 1/11. Send the full collection in a closed crate to CentCom at your local quartermaster for a GREAT reward!" + desc = "Mini-Mecha action figure! Collect them all! 1/11." /obj/item/toy/prize/fireripley name = "toy firefighting ripley" - desc = "Mini-Mecha action figure! Collect them all! 2/11. Send the full collection in a closed crate to CentCom at your local quartermaster for a GREAT reward!" + desc = "Mini-Mecha action figure! Collect them all! 2/11." icon_state = "fireripleytoy" /obj/item/toy/prize/deathripley name = "toy deathsquad ripley" - desc = "Mini-Mecha action figure! Collect them all! 3/11. Send the full collection in a closed crate to CentCom at your local quartermaster for a GREAT reward!" + desc = "Mini-Mecha action figure! Collect them all! 3/11." icon_state = "deathripleytoy" /obj/item/toy/prize/gygax name = "toy gygax" - desc = "Mini-Mecha action figure! Collect them all! 4/11. Send the full collection in a closed crate to CentCom at your local quartermaster for a GREAT reward!" + desc = "Mini-Mecha action figure! Collect them all! 4/11." icon_state = "gygaxtoy" /obj/item/toy/prize/durand name = "toy durand" - desc = "Mini-Mecha action figure! Collect them all! 5/11. Send the full collection in a closed crate to CentCom at your local quartermaster for a GREAT reward!" + desc = "Mini-Mecha action figure! Collect them all! 5/11." icon_state = "durandprize" /obj/item/toy/prize/honk name = "toy H.O.N.K." - desc = "Mini-Mecha action figure! Collect them all! 6/11. Send the full collection in a closed crate to CentCom at your local quartermaster for a GREAT reward!" + desc = "Mini-Mecha action figure! Collect them all! 6/11." icon_state = "honkprize" /obj/item/toy/prize/marauder name = "toy marauder" - desc = "Mini-Mecha action figure! Collect them all! 7/11. Send the full collection in a closed crate to CentCom at your local quartermaster for a GREAT reward!" + desc = "Mini-Mecha action figure! Collect them all! 7/11." icon_state = "marauderprize" /obj/item/toy/prize/seraph name = "toy seraph" - desc = "Mini-Mecha action figure! Collect them all! 8/11. Send the full collection in a closed crate to CentCom at your local quartermaster for a GREAT reward!" + desc = "Mini-Mecha action figure! Collect them all! 8/11." icon_state = "seraphprize" /obj/item/toy/prize/mauler name = "toy mauler" - desc = "Mini-Mecha action figure! Collect them all! 9/11. Send the full collection in a closed crate to CentCom at your local quartermaster for a GREAT reward!" + desc = "Mini-Mecha action figure! Collect them all! 9/11." icon_state = "maulerprize" /obj/item/toy/prize/odysseus name = "toy odysseus" - desc = "Mini-Mecha action figure! Collect them all! 10/11. Send the full collection in a closed crate to CentCom at your local quartermaster for a GREAT reward!" + desc = "Mini-Mecha action figure! Collect them all! 10/11." icon_state = "odysseusprize" /obj/item/toy/prize/phazon name = "toy phazon" - desc = "Mini-Mecha action figure! Collect them all! 11/11. Send the full collection in a closed crate to CentCom at your local quartermaster for a GREAT reward!" + desc = "Mini-Mecha action figure! Collect them all! 11/11." icon_state = "phazonprize" diff --git a/code/game/supplyshuttle.dm b/code/game/supplyshuttle.dm index 85763ef6c8d..44c6cf2f8ea 100644 --- a/code/game/supplyshuttle.dm +++ b/code/game/supplyshuttle.dm @@ -132,7 +132,7 @@ var/list/mechtoys = list( var/points_per_process = 1 var/points_per_slip = 2 var/points_per_crate = 5 - var/mech_redeem = 0 + var/plasma_per_point = 3 // 3 plasma for 1 point //control var/ordernum var/list/shoppinglist = list() @@ -232,15 +232,18 @@ var/list/mechtoys = list( var/area/shuttle = locate(shuttle_at) if(!shuttle) return - var/list/mechtoys_found = list() + var/plasma_count = 0 for(var/atom/movable/MA in shuttle) if(MA.anchored) continue + + // Must be in a crate! if(istype(MA,/obj/structure/closet/crate)) points += points_per_crate var/find_slip = 1 for(var/atom in MA) + // Sell manifests var/atom/A = atom if(find_slip && istype(A,/obj/item/weapon/paper/manifest)) var/obj/item/weapon/paper/slip = A @@ -248,17 +251,15 @@ var/list/mechtoys = list( points += points_per_slip find_slip = 0 continue - if(A.type in mechtoys) - mechtoys_found["[A.type]"]++ + + // Sell plasma + if(istype(A, /obj/item/stack/sheet/mineral/plasma)) + var/obj/item/stack/sheet/mineral/plasma/P = A + plasma_count += P.amount del(MA) - if(mechtoys && mechtoys.len && mechtoys_found.len >= mechtoys.len) - var/complete_sets = 10 - for(var/index in mechtoys_found) - complete_sets = min(complete_sets, mechtoys_found[index]) - - if(complete_sets) - mech_redeem += complete_sets + if(plasma_count) + points += Floor(plasma_count / plasma_per_point) //Buyin proc/buy() @@ -323,17 +324,6 @@ var/list/mechtoys = list( slip.info += "
" slip.info += "CHECK CONTENTS AND STAMP BELOW THE LINE TO CONFIRM RECEIPT OF GOODS
" - while(0 +
+

23 December 2012

+

Giacom updated:

+
    +
  • You can now sell processed plasma for supply points. The conversion rate is 3 plasma sheets for 1 point.
  • +
+

21 December 2012

Ikarrus updated:

@@ -67,8 +74,8 @@ should be listed in the changelog upon commit tho. Thanks. -->

Giacom updated:

  • You can now create your own solar arrays! Order the solar pack crate and you'll receive 21 solar assemblies, 1 electronic which you can put into an assembly to make it a solar tracker and finally the solar computer circuit board. You will get more detailed instructions in the crate, on a piece of paper. Engineering will also start with this crate to help repair destroyed solar arrays.
  • -

    Petethegoat updated:

+

Petethegoat updated:

  • Added a new option to the key authorisation devices. It removes the maintenance access requirement from all doors. It's irreversible, so only use it in an emergency!