mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
-Cyborg frames can no longer be turned into reinforced ones if they already have parts on them
Fixes Issue 1055 -Made a 'catch-all' for emotes, where any 's's at the end of an emote command(Unless they have a '_' in front of them) will be cut off, so things like 'bow' and 'bows' would be interchangeable, and so on. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5043 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -97,7 +97,7 @@
|
|||||||
|
|
||||||
/obj/item/robot_parts/robot_suit/attackby(obj/item/W as obj, mob/user as mob)
|
/obj/item/robot_parts/robot_suit/attackby(obj/item/W as obj, mob/user as mob)
|
||||||
..()
|
..()
|
||||||
if(istype(W, /obj/item/stack/sheet/metal))
|
if(istype(W, /obj/item/stack/sheet/metal) && !l_arm && !r_arm && !l_leg && !r_leg && !chest && !head)
|
||||||
var/obj/item/weapon/ed209_assembly/B = new /obj/item/weapon/ed209_assembly
|
var/obj/item/weapon/ed209_assembly/B = new /obj/item/weapon/ed209_assembly
|
||||||
B.loc = get_turf(src)
|
B.loc = get_turf(src)
|
||||||
user << "You armed the robot frame"
|
user << "You armed the robot frame"
|
||||||
|
|||||||
@@ -5,6 +5,9 @@
|
|||||||
var/t1 = findtext(act, "-", 1, null)
|
var/t1 = findtext(act, "-", 1, null)
|
||||||
param = copytext(act, t1 + 1, length(act) + 1)
|
param = copytext(act, t1 + 1, length(act) + 1)
|
||||||
act = copytext(act, 1, t1)
|
act = copytext(act, 1, t1)
|
||||||
|
|
||||||
|
if(findtext(act,"s",-1) && !findtext(act,"_",-2))//Removes ending s's unless they are prefixed with a '_'
|
||||||
|
act = copytext(act,1,length(act))
|
||||||
var/muzzled = istype(src.wear_mask, /obj/item/clothing/mask/muzzle)
|
var/muzzled = istype(src.wear_mask, /obj/item/clothing/mask/muzzle)
|
||||||
var/m_type = 1
|
var/m_type = 1
|
||||||
var/message
|
var/message
|
||||||
|
|||||||
@@ -5,6 +5,9 @@
|
|||||||
var/t1 = findtext(act, "-", 1, null)
|
var/t1 = findtext(act, "-", 1, null)
|
||||||
param = copytext(act, t1 + 1, length(act) + 1)
|
param = copytext(act, t1 + 1, length(act) + 1)
|
||||||
act = copytext(act, 1, t1)
|
act = copytext(act, 1, t1)
|
||||||
|
|
||||||
|
if(findtext(act,"s",-1) && !findtext(act,"_",-2))//Removes ending s's unless they are prefixed with a '_'
|
||||||
|
act = copytext(act,1,length(act))
|
||||||
var/muzzled = istype(src.wear_mask, /obj/item/clothing/mask/muzzle)
|
var/muzzled = istype(src.wear_mask, /obj/item/clothing/mask/muzzle)
|
||||||
var/m_type = 1
|
var/m_type = 1
|
||||||
var/message
|
var/message
|
||||||
|
|||||||
@@ -6,6 +6,9 @@
|
|||||||
var/t1 = findtext(act, "-", 1, null)
|
var/t1 = findtext(act, "-", 1, null)
|
||||||
act = copytext(act, 1, t1)
|
act = copytext(act, 1, t1)
|
||||||
|
|
||||||
|
if(findtext(act,"s",-1) && !findtext(act,"_",-2))//Removes ending s's unless they are prefixed with a '_'
|
||||||
|
act = copytext(act,1,length(act))
|
||||||
|
|
||||||
if(src.stat == DEAD)
|
if(src.stat == DEAD)
|
||||||
return
|
return
|
||||||
switch(act)
|
switch(act)
|
||||||
|
|||||||
@@ -6,6 +6,9 @@
|
|||||||
param = copytext(act, t1 + 1, length(act) + 1)
|
param = copytext(act, t1 + 1, length(act) + 1)
|
||||||
act = copytext(act, 1, t1)
|
act = copytext(act, 1, t1)
|
||||||
|
|
||||||
|
if(findtext(act,"s",-1) && !findtext(act,"_",-2))//Removes ending s's unless they are prefixed with a '_'
|
||||||
|
act = copytext(act,1,length(act))
|
||||||
|
|
||||||
var/muzzled = istype(src.wear_mask, /obj/item/clothing/mask/muzzle)
|
var/muzzled = istype(src.wear_mask, /obj/item/clothing/mask/muzzle)
|
||||||
//var/m_type = 1
|
//var/m_type = 1
|
||||||
|
|
||||||
@@ -530,7 +533,7 @@
|
|||||||
else
|
else
|
||||||
message = "<B>[src]</B> holds out \his hand to [M]."
|
message = "<B>[src]</B> holds out \his hand to [M]."
|
||||||
|
|
||||||
if("daps")
|
if("dap")
|
||||||
m_type = 1
|
m_type = 1
|
||||||
if (!src.restrained())
|
if (!src.restrained())
|
||||||
var/M = null
|
var/M = null
|
||||||
|
|||||||
@@ -6,6 +6,9 @@
|
|||||||
//param = copytext(act, t1 + 1, length(act) + 1)
|
//param = copytext(act, t1 + 1, length(act) + 1)
|
||||||
act = copytext(act, 1, t1)
|
act = copytext(act, 1, t1)
|
||||||
|
|
||||||
|
if(findtext(act,"s",-1) && !findtext(act,"_",-2))//Removes ending s's unless they are prefixed with a '_'
|
||||||
|
act = copytext(act,1,length(act))
|
||||||
|
|
||||||
var/m_type = 1
|
var/m_type = 1
|
||||||
var/message
|
var/message
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,10 @@
|
|||||||
var/t1 = findtext(act, "-", 1, null)
|
var/t1 = findtext(act, "-", 1, null)
|
||||||
param = copytext(act, t1 + 1, length(act) + 1)
|
param = copytext(act, t1 + 1, length(act) + 1)
|
||||||
act = copytext(act, 1, t1)
|
act = copytext(act, 1, t1)
|
||||||
|
|
||||||
|
if(findtext(act,"s",-1) && !findtext(act,"_",-2))//Removes ending s's unless they are prefixed with a '_'
|
||||||
|
act = copytext(act,1,length(act))
|
||||||
|
|
||||||
var/muzzled = istype(src.wear_mask, /obj/item/clothing/mask/muzzle)
|
var/muzzled = istype(src.wear_mask, /obj/item/clothing/mask/muzzle)
|
||||||
var/m_type = 1
|
var/m_type = 1
|
||||||
var/message
|
var/message
|
||||||
|
|||||||
@@ -5,6 +5,9 @@
|
|||||||
param = copytext(act, t1 + 1, length(act) + 1)
|
param = copytext(act, t1 + 1, length(act) + 1)
|
||||||
act = copytext(act, 1, t1)
|
act = copytext(act, 1, t1)
|
||||||
|
|
||||||
|
if(findtext(act,"s",-1) && !findtext(act,"_",-2))//Removes ending s's unless they are prefixed with a '_'
|
||||||
|
act = copytext(act,1,length(act))
|
||||||
|
|
||||||
switch(act)
|
switch(act)
|
||||||
if ("salute")
|
if ("salute")
|
||||||
if (!src.buckled)
|
if (!src.buckled)
|
||||||
|
|||||||
Reference in New Issue
Block a user