Merge pull request #8582 from VOREStation/master

August 3rd 2020 Hotfix
This commit is contained in:
Novacat
2020-08-03 17:15:57 -04:00
committed by GitHub
3 changed files with 25 additions and 22 deletions

View File

@@ -156,7 +156,7 @@
blocked = 1 blocked = 1
var/attackamt = rand(2,6) var/attackamt = rand(2,6)
temp = "You attack for [attackamt] damage!" temp = "You attack for [attackamt] damage!"
playsound(src, 'sound/arcade/hit.ogg', 50, 1, extrarange = -3, falloff = 10) playsound(src, 'sound/arcade/hit.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE)
if(turtle > 0) if(turtle > 0)
turtle-- turtle--
@@ -169,7 +169,7 @@
var/pointamt = rand(1,3) var/pointamt = rand(1,3)
var/healamt = rand(6,8) var/healamt = rand(6,8)
temp = "You use [pointamt] magic to heal for [healamt] damage!" temp = "You use [pointamt] magic to heal for [healamt] damage!"
playsound(src, 'sound/arcade/heal.ogg', 50, 1, extrarange = -3, falloff = 10) playsound(src, 'sound/arcade/heal.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE)
turtle++ turtle++
sleep(10) sleep(10)
@@ -182,7 +182,7 @@
blocked = 1 blocked = 1
var/chargeamt = rand(4,7) var/chargeamt = rand(4,7)
temp = "You regain [chargeamt] points" temp = "You regain [chargeamt] points"
playsound(src, 'sound/arcade/mana.ogg', 50, 1, extrarange = -3, falloff = 10) playsound(src, 'sound/arcade/mana.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE)
player_mp += chargeamt player_mp += chargeamt
if(turtle > 0) if(turtle > 0)
turtle-- turtle--
@@ -213,7 +213,7 @@
if(!gameover) if(!gameover)
gameover = 1 gameover = 1
temp = "[enemy_name] has fallen! Rejoice!" temp = "[enemy_name] has fallen! Rejoice!"
playsound(src, 'sound/arcade/win.ogg', 50, 1, extrarange = -3, falloff = 10) playsound(src, 'sound/arcade/win.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE)
if(emagged) if(emagged)
feedback_inc("arcade_win_emagged") feedback_inc("arcade_win_emagged")
@@ -234,13 +234,13 @@
else if (emagged && (turtle >= 4)) else if (emagged && (turtle >= 4))
var/boomamt = rand(5,10) var/boomamt = rand(5,10)
enemy_action = "[enemy_name] throws a bomb, exploding you for [boomamt] damage!" enemy_action = "[enemy_name] throws a bomb, exploding you for [boomamt] damage!"
playsound(src, 'sound/arcade/boom.ogg', 50, 1, extrarange = -3, falloff = 10) playsound(src, 'sound/arcade/boom.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE)
player_hp -= boomamt player_hp -= boomamt
else if ((enemy_mp <= 5) && (prob(70))) else if ((enemy_mp <= 5) && (prob(70)))
var/stealamt = rand(2,3) var/stealamt = rand(2,3)
enemy_action = "[enemy_name] steals [stealamt] of your power!" enemy_action = "[enemy_name] steals [stealamt] of your power!"
playsound(src, 'sound/arcade/steal.ogg', 50, 1, extrarange = -3, falloff = 10) playsound(src, 'sound/arcade/steal.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE)
player_mp -= stealamt player_mp -= stealamt
if (player_mp <= 0) if (player_mp <= 0)
@@ -255,20 +255,20 @@
else if ((enemy_hp <= 10) && (enemy_mp > 4)) else if ((enemy_hp <= 10) && (enemy_mp > 4))
enemy_action = "[enemy_name] heals for 4 health!" enemy_action = "[enemy_name] heals for 4 health!"
playsound(src, 'sound/arcade/heal.ogg', 50, 1, extrarange = -3, falloff = 10) playsound(src, 'sound/arcade/heal.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE)
enemy_hp += 4 enemy_hp += 4
enemy_mp -= 4 enemy_mp -= 4
else else
var/attackamt = rand(3,6) var/attackamt = rand(3,6)
enemy_action = "[enemy_name] attacks for [attackamt] damage!" enemy_action = "[enemy_name] attacks for [attackamt] damage!"
playsound(src, 'sound/arcade/hit.ogg', 50, 1, extrarange = -3, falloff = 10) playsound(src, 'sound/arcade/hit.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE)
player_hp -= attackamt player_hp -= attackamt
if ((player_mp <= 0) || (player_hp <= 0)) if ((player_mp <= 0) || (player_hp <= 0))
gameover = 1 gameover = 1
temp = "You have been crushed! GAME OVER" temp = "You have been crushed! GAME OVER"
playsound(src, 'sound/arcade/lose.ogg', 50, 1, extrarange = -3, falloff = 10) playsound(src, 'sound/arcade/lose.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE)
if(emagged) if(emagged)
feedback_inc("arcade_loss_hp_emagged") feedback_inc("arcade_loss_hp_emagged")
usr.gib() usr.gib()
@@ -402,7 +402,7 @@
user.set_machine(src) user.set_machine(src)
var/dat = "" var/dat = ""
if(gameStatus == ORION_STATUS_GAMEOVER) if(gameStatus == ORION_STATUS_GAMEOVER)
playsound(src, 'sound/arcade/Ori_fail.ogg', 50, 1, extrarange = -3, falloff = 10) playsound(src, 'sound/arcade/Ori_fail.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE)
dat = "<center><h1>Game Over</h1></center>" dat = "<center><h1>Game Over</h1></center>"
dat += "Like many before you, your crew never made it to Orion, lost to space... <br><b>forever</b>." dat += "Like many before you, your crew never made it to Orion, lost to space... <br><b>forever</b>."
if(settlers.len == 0) if(settlers.len == 0)
@@ -537,7 +537,7 @@
else if(href_list["newgame"]) //Reset everything else if(href_list["newgame"]) //Reset everything
if(gameStatus == ORION_STATUS_START) if(gameStatus == ORION_STATUS_START)
playsound(src, 'sound/arcade/Ori_begin.ogg', 50, 1, extrarange = -3, falloff = 10) playsound(src, 'sound/arcade/Ori_begin.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE)
newgame() newgame()
else if(href_list["menu"]) //back to the main menu else if(href_list["menu"]) //back to the main menu
if(gameStatus == ORION_STATUS_GAMEOVER) if(gameStatus == ORION_STATUS_GAMEOVER)
@@ -609,7 +609,7 @@
else if(href_list["killcrew"]) //shoot a crewmember else if(href_list["killcrew"]) //shoot a crewmember
if(gameStatus == ORION_STATUS_NORMAL || event == ORION_TRAIL_MUTINY) if(gameStatus == ORION_STATUS_NORMAL || event == ORION_TRAIL_MUTINY)
playsound(src, 'sound/arcade/kill_crew.ogg', 50, 1, extrarange = -3, falloff = 10) playsound(src, 'sound/arcade/kill_crew.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE)
var/sheriff = remove_crewmember() //I shot the sheriff var/sheriff = remove_crewmember() //I shot the sheriff
var/mob/living/L = usr var/mob/living/L = usr
if(!istype(L)) if(!istype(L))
@@ -635,7 +635,7 @@
else if(href_list["buycrew"]) //buy a crewmember else if(href_list["buycrew"]) //buy a crewmember
if(gameStatus == ORION_STATUS_MARKET) if(gameStatus == ORION_STATUS_MARKET)
if(!spaceport_raided && food >= 10 && fuel >= 10) if(!spaceport_raided && food >= 10 && fuel >= 10)
playsound(src, 'sound/arcade/get_fuel.ogg', 50, 1, extrarange = -3, falloff = 10) playsound(src, 'sound/arcade/get_fuel.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE)
var/bought = add_crewmember() var/bought = add_crewmember()
last_spaceport_action = "You hired [bought] as a new crewmember." last_spaceport_action = "You hired [bought] as a new crewmember."
fuel -= 10 fuel -= 10
@@ -645,7 +645,7 @@
else if(href_list["sellcrew"]) //sell a crewmember else if(href_list["sellcrew"]) //sell a crewmember
if(gameStatus == ORION_STATUS_MARKET) if(gameStatus == ORION_STATUS_MARKET)
if(!spaceport_raided && settlers.len > 1) if(!spaceport_raided && settlers.len > 1)
playsound(src, 'sound/arcade/lose_fuel.ogg', 50, 1, extrarange = -3, falloff = 10) playsound(src, 'sound/arcade/lose_fuel.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE)
var/sold = remove_crewmember() var/sold = remove_crewmember()
last_spaceport_action = "You sold your crewmember, [sold]!" last_spaceport_action = "You sold your crewmember, [sold]!"
fuel += 7 fuel += 7
@@ -663,7 +663,7 @@
else if(href_list["raid_spaceport"]) else if(href_list["raid_spaceport"])
if(gameStatus == ORION_STATUS_MARKET) if(gameStatus == ORION_STATUS_MARKET)
if(!spaceport_raided) if(!spaceport_raided)
playsound(src, 'sound/arcade/raid.ogg', 50, 1, extrarange = -3, falloff = 10) playsound(src, 'sound/arcade/raid.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE)
var/success = min(15 * alive,100) //default crew (4) have a 60% chance var/success = min(15 * alive,100) //default crew (4) have a 60% chance
spaceport_raided = 1 spaceport_raided = 1
@@ -702,7 +702,7 @@
else if(href_list["buyparts"]) else if(href_list["buyparts"])
if(gameStatus == ORION_STATUS_MARKET) if(gameStatus == ORION_STATUS_MARKET)
if(!spaceport_raided && fuel > 5) if(!spaceport_raided && fuel > 5)
playsound(src, 'sound/arcade/get_fuel.ogg', 50, 1, extrarange = -3, falloff = 10) playsound(src, 'sound/arcade/get_fuel.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE)
switch(text2num(href_list["buyparts"])) switch(text2num(href_list["buyparts"]))
if(1) //Engine Parts if(1) //Engine Parts
engine++ engine++
@@ -719,7 +719,7 @@
else if(href_list["trade"]) else if(href_list["trade"])
if(gameStatus == ORION_STATUS_MARKET) if(gameStatus == ORION_STATUS_MARKET)
if(!spaceport_raided) if(!spaceport_raided)
playsound(src, 'sound/arcade/get_fuel.ogg', 50, 1, extrarange = -3, falloff = 10) playsound(src, 'sound/arcade/get_fuel.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE)
switch(text2num(href_list["trade"])) switch(text2num(href_list["trade"]))
if(1) //Fuel if(1) //Fuel
if(fuel > 5) if(fuel > 5)
@@ -762,7 +762,7 @@
canContinueEvent = 1 canContinueEvent = 1
if(ORION_TRAIL_FLUX) if(ORION_TRAIL_FLUX)
playsound(src, 'sound/arcade/explo.ogg', 50, 1, extrarange = -3, falloff = 10) playsound(src, 'sound/arcade/explo.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE)
eventdat += "This region of space is highly turbulent. <br>If we go slowly we may avoid more damage, but if we keep our speed we won't waste supplies." eventdat += "This region of space is highly turbulent. <br>If we go slowly we may avoid more damage, but if we keep our speed we won't waste supplies."
eventdat += "<br>What will you do?" eventdat += "<br>What will you do?"
eventdat += "<P ALIGN=Right><a href='byond://?src=\ref[src];slow=1'>Slow Down</a> <a href='byond://?src=\ref[src];keepspeed=1'>Continue</a></P>" eventdat += "<P ALIGN=Right><a href='byond://?src=\ref[src];slow=1'>Slow Down</a> <a href='byond://?src=\ref[src];keepspeed=1'>Continue</a></P>"
@@ -777,7 +777,7 @@
canContinueEvent = 1 canContinueEvent = 1
if(ORION_TRAIL_BREAKDOWN) if(ORION_TRAIL_BREAKDOWN)
playsound(src, 'sound/arcade/explo.ogg', 50, 1, extrarange = -3, falloff = 10) playsound(src, 'sound/arcade/explo.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE)
eventdat += "Oh no! The engine has broken down!" eventdat += "Oh no! The engine has broken down!"
eventdat += "<br>You can repair it with an engine part, or you can make repairs for 3 days." eventdat += "<br>You can repair it with an engine part, or you can make repairs for 3 days."
if(engine >= 1) if(engine >= 1)
@@ -796,7 +796,7 @@
eventdat += "<P ALIGN=Right><a href='byond://?src=\ref[src];close=1'>Close</a></P>" eventdat += "<P ALIGN=Right><a href='byond://?src=\ref[src];close=1'>Close</a></P>"
if(ORION_TRAIL_COLLISION) if(ORION_TRAIL_COLLISION)
playsound(src, 'sound/arcade/explo.ogg', 50, 1, extrarange = -3, falloff = 10) playsound(src, 'sound/arcade/explo.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE)
eventdat += "Something hit us! Looks like there's some hull damage." eventdat += "Something hit us! Looks like there's some hull damage."
if(prob(25)) if(prob(25))
var/sfood = rand(5,15) var/sfood = rand(5,15)
@@ -1012,7 +1012,7 @@
/obj/machinery/computer/arcade/orion_trail/proc/win() /obj/machinery/computer/arcade/orion_trail/proc/win()
gameStatus = ORION_STATUS_START gameStatus = ORION_STATUS_START
src.visible_message("\The [src] plays a triumpant tune, stating 'CONGRATULATIONS, YOU HAVE MADE IT TO ORION.'") src.visible_message("\The [src] plays a triumpant tune, stating 'CONGRATULATIONS, YOU HAVE MADE IT TO ORION.'")
playsound(src, 'sound/arcade/Ori_win.ogg', 50, 1, extrarange = -3, falloff = 10) playsound(src, 'sound/arcade/Ori_win.ogg', 50, 1, extrarange = -3, falloff = 0.1, ignore_walls = FALSE)
if(emagged) if(emagged)
new /obj/item/weapon/orion_ship(src.loc) new /obj/item/weapon/orion_ship(src.loc)
message_admins("[key_name_admin(usr)] made it to Orion on an emagged machine and got an explosive toy ship.") message_admins("[key_name_admin(usr)] made it to Orion on an emagged machine and got an explosive toy ship.")

View File

@@ -1,3 +1,6 @@
/obj/item/device/cataloguer
credit_sharing_range = 280
/obj/item/device/cataloguer/compact /obj/item/device/cataloguer/compact
name = "compact cataloguer" name = "compact cataloguer"
icon = 'icons/vore/custom_items_vr.dmi' icon = 'icons/vore/custom_items_vr.dmi'

View File

@@ -82,7 +82,7 @@
for(var/r_r in reagents) for(var/r_r in reagents)
var/aval_r_amnt = avail_reagents.get_reagent_amount(r_r) var/aval_r_amnt = avail_reagents.get_reagent_amount(r_r)
if(aval_r_amnt - reagents[r_r] >= 0) if(aval_r_amnt - reagents[r_r] >= 0)
if(aval_r_amnt>(reagents[r_r] && exact)) if(aval_r_amnt>(reagents[r_r]) && exact)
. = FALSE . = FALSE
else else
return FALSE return FALSE