Bedshaped's Best Bugfixes #1 (#654)

Fixes #505 (again)
Fixes #626 
Fixes #647 
Resolves #509
This commit is contained in:
Bedshaped
2016-08-02 19:47:37 +01:00
committed by skull132
parent eba855d423
commit f0df1746f8
7 changed files with 32 additions and 9 deletions

View File

@@ -11,7 +11,7 @@ proc/worldtime2text(time = world.time)
return "[(round(time / 36000)+roundstart_hour) % 24]:[(time / 600 % 60) < 10 ? add_zero(time / 600 % 60, 1) : time / 600 % 60]" return "[(round(time / 36000)+roundstart_hour) % 24]:[(time / 600 % 60) < 10 ? add_zero(time / 600 % 60, 1) : time / 600 % 60]"
proc/worlddate2text() proc/worlddate2text()
return num2text((text2num(time2text(world.timeofday, "YYYY"))+544)) + "-" + time2text(world.timeofday, "MM-DD") return num2text(game_year) + "-" + time2text(world.timeofday, "MM-DD")
proc/time_stamp() proc/time_stamp()
return time2text(world.timeofday, "hh:mm:ss") return time2text(world.timeofday, "hh:mm:ss")

View File

@@ -241,14 +241,12 @@
//creates a new stack with the specified amount //creates a new stack with the specified amount
/obj/item/stack/proc/split(var/tamount) /obj/item/stack/proc/split(var/tamount)
if (!amount) if (!get_amount())
return null
if(uses_charge)
return null return null
var/transfer = max(min(tamount, src.amount, initial(max_amount)), 0) var/transfer = max(min(tamount, src.amount, initial(max_amount)), 0)
var/orig_amount = src.amount var/orig_amount = src.get_amount()
if (transfer && src.use(transfer)) if (transfer && src.use(transfer))
var/obj/item/stack/newstack = new src.type(loc, transfer) var/obj/item/stack/newstack = new src.type(loc, transfer)
newstack.color = color newstack.color = color

View File

@@ -94,7 +94,7 @@ var/blobevent = 0
var/diary = null var/diary = null
var/href_logfile = null var/href_logfile = null
var/station_name = "NSS Exodus" var/station_name = "NSS Exodus"
var/commstation_name = "NMSS Odin" var/commstation_name = "NTCC Odin"
var/game_version = "Baystation12" var/game_version = "Baystation12"
var/changelog_hash = "" var/changelog_hash = ""
var/game_year = (text2num(time2text(world.realtime, "YYYY")) + 442) var/game_year = (text2num(time2text(world.realtime, "YYYY")) + 442)

View File

@@ -559,9 +559,11 @@ Traitors and the like can also be revived with the previous role mostly intact.
C.messagetext.Add(P.info) C.messagetext.Add(P.info)
if (reporttype == "Template") if (reporttype == "Template")
reporter = sanitizeSafe(input(usr, "Please enter your CCIA name. (blank for no sender)", "Name") as text|null) reporter = sanitizeSafe(input(usr, "Please enter your CCIA name. (blank for CCIAAMS)", "Name") as text|null)
if (reporter) if (reporter)
reportbody += "\n\n- [reporter], Central Command Internal Affairs Agent, [commstation_name()]" reportbody += "\n\n- [reporter], Central Command Internal Affairs Agent, [commstation_name()]"
else
reportbody += "\n\n- CCIAAMS, [commstation_name()]"
switch(alert("Should this be announced to the general population?",,"Yes","No")) switch(alert("Should this be announced to the general population?",,"Yes","No"))
if("Yes") if("Yes")

View File

@@ -45,7 +45,7 @@
/obj/machinery/seed_storage/xenobotany /obj/machinery/seed_storage/xenobotany
name = "Xenobotany seed storage" name = "Xenobotany seed storage"
scanner = list("stats", "produce", "soil", "temperature", "light") scanner = list("stats", "produce", "soil", "temperature", "light")
starting_seeds = list(/obj/item/seeds/ambrosiavulgarisseed = 3, /obj/item/seeds/appleseed = 3, /obj/item/seeds/amanitamycelium = 2, /obj/item/seeds/bananaseed = 3, /obj/item/seeds/berryseed = 3, /obj/item/seeds/cabbageseed = 3, /obj/item/seeds/carrotseed = 3, /obj/item/seeds/chantermycelium = 3, /obj/item/seeds/cherryseed = 3, /obj/item/seeds/chiliseed = 3, /obj/item/seeds/cocoapodseed = 3, /obj/item/seeds/cornseed = 3, /obj/item/seeds/replicapod = 3, /obj/item/seeds/eggplantseed = 3, /obj/item/seeds/glowshroom = 2, /obj/item/seeds/grapeseed = 3, /obj/item/seeds/grassseed = 3, /obj/item/seeds/lemonseed = 3, /obj/item/seeds/libertymycelium = 2, /obj/item/seeds/limeseed = 3, /obj/item/seeds/mtearseed = 2, /obj/item/seeds/nettleseed = 2, /obj/item/seeds/orangeseed = 3, /obj/item/seeds/peanutseed = 3, /obj/item/seeds/plastiseed = 3, /obj/item/seeds/plumpmycelium = 3, /obj/item/seeds/poppyseed = 3, /obj/item/seeds/potatoseed = 3, /obj/item/seeds/pumpkinseed = 3, /obj/item/seeds/reishimycelium = 2, /obj/item/seeds/riceseed = 3, /obj/item/seeds/soyaseed = 3, /obj/item/seeds/sugarcaneseed = 3, /obj/item/seeds/sunflowerseed = 3, /obj/item/seeds/shandseed = 2, /obj/item/seeds/tobaccoseed = 3, /obj/item/seeds/tomatoseed = 3, /obj/item/seeds/towermycelium = 3, /obj/item/seeds/watermelonseed = 3, /obj/item/seeds/wheatseed = 3, /obj/item/seeds/whitebeetseed = 3) starting_seeds = list(/obj/item/seeds/ambrosiavulgarisseed = 3, /obj/item/seeds/appleseed = 3, /obj/item/seeds/amanitamycelium = 2, /obj/item/seeds/bananaseed = 3, /obj/item/seeds/berryseed = 3, /obj/item/seeds/cabbageseed = 3, /obj/item/seeds/carrotseed = 3, /obj/item/seeds/chantermycelium = 3, /obj/item/seeds/cherryseed = 3, /obj/item/seeds/chiliseed = 3, /obj/item/seeds/cocoapodseed = 3, /obj/item/seeds/cornseed = 3, /obj/item/seeds/replicapod = 3, /obj/item/seeds/eggplantseed = 3, /obj/item/seeds/glowshroom = 2, /obj/item/seeds/grapeseed = 3, /obj/item/seeds/grassseed = 3, /obj/item/seeds/lemonseed = 3, /obj/item/seeds/libertymycelium = 2, /obj/item/seeds/limeseed = 3, /obj/item/seeds/mtearseed = 2, /obj/item/seeds/nettleseed = 2, /obj/item/seeds/orangeseed = 3, /obj/item/seeds/peanutseed = 3, /obj/item/seeds/plastiseed = 3, /obj/item/seeds/plumpmycelium = 3, /obj/item/seeds/poppyseed = 3, /obj/item/seeds/potatoseed = 3, /obj/item/seeds/pumpkinseed = 3, /obj/item/seeds/reishimycelium = 2, /obj/item/seeds/riceseed = 3, /obj/item/seeds/soyaseed = 3, /obj/item/seeds/sugarcaneseed = 3, /obj/item/seeds/sunflowerseed = 3, /obj/item/seeds/shandseed = 2, /obj/item/seeds/tobaccoseed = 3, /obj/item/seeds/tomatoseed = 3, /obj/item/seeds/towermycelium = 3, /obj/item/seeds/watermelonseed = 3, /obj/item/seeds/wheatseed = 3, /obj/item/seeds/whitebeetseed = 3, /obj/item/seeds/koisspore = 3)
/obj/machinery/seed_storage/attack_hand(mob/user as mob) /obj/machinery/seed_storage/attack_hand(mob/user as mob)
user.set_machine(src) user.set_machine(src)

View File

@@ -149,5 +149,17 @@
if (src.anchored) if (src.anchored)
usr << "It is fastened to the floor!" usr << "It is fastened to the floor!"
return return
src.set_dir(turn(src.dir, 270)) if(config.ghost_interaction)
src.set_dir(turn(src.dir, 90))
return
else
if(istype(usr,/mob/living/simple_animal/mouse))
return
if(!usr || !isturf(usr.loc))
return
if(usr.stat || usr.restrained())
return
src.set_dir(turn(src.dir, 90))
return
return return

View File

@@ -0,0 +1,11 @@
author: Bedshaped
delete-after: True
changes:
- tweak: "Changing the commstation_name to NTCC Odin as per Jackboot"
- tweak: "Allowing command reports to have the CCIAAMS signature"
- bugfix: "Writing [date] on paper will now show the correct lore date"
- bugfix: "Cyborgs can now repair airlocks with their steel synthesizer"
- bugfix: "Ghosts and other creatures can no longer rotate shield capacitors"
- rscadd: "Kois has been added to the Xenobiology seed vendor"