diff --git a/code/__DEFINES/traits.dm b/code/__DEFINES/traits.dm index e48eea451d..53b75d4d30 100644 --- a/code/__DEFINES/traits.dm +++ b/code/__DEFINES/traits.dm @@ -135,10 +135,14 @@ #define TRAIT_NOMARROW "nomarrow" // You don't make blood, with chemicals or nanites. #define TRAIT_NOPULSE "nopulse" // Your heart doesn't beat. #define TRAIT_EXEMPT_HEALTH_EVENTS "exempt-health-events" +#define TRAIT_PASSTABLE "passtable" //non-mob traits #define TRAIT_PARALYSIS "paralysis" //Used for limb-based paralysis, where replacing the limb will fix it +#define VEHICLE_TRAIT "vehicle" // inherited from riding vehicles +#define INNATE_TRAIT "innate" + // item traits #define TRAIT_NODROP "nodrop" diff --git a/code/__HELPERS/mobs.dm b/code/__HELPERS/mobs.dm index 5f53bab65c..94897b69f8 100644 --- a/code/__HELPERS/mobs.dm +++ b/code/__HELPERS/mobs.dm @@ -585,7 +585,7 @@ GLOBAL_LIST_EMPTY(species_list) /proc/passtable_on(target, source) var/mob/living/L = target - if (!HAS_TRAIT(L, TRAIT_PASSTABLE) && L.pass_flags & PASSTABLE) + if(!HAS_TRAIT(L, TRAIT_PASSTABLE) && L.pass_flags & PASSTABLE) ADD_TRAIT(L, TRAIT_PASSTABLE, INNATE_TRAIT) ADD_TRAIT(L, TRAIT_PASSTABLE, source) L.pass_flags |= PASSTABLE diff --git a/code/game/objects/items/weaponry.dm b/code/game/objects/items/weaponry.dm index c7bf31a7d3..c78d897fe5 100644 --- a/code/game/objects/items/weaponry.dm +++ b/code/game/objects/items/weaponry.dm @@ -500,7 +500,10 @@ for further reading, please see: https://github.com/tgstation/tgstation/pull/301 var/board_item_type = /obj/vehicle/ridden/scooter/skateboard /obj/item/melee/skateboard/attack_self(mob/user) - new board_item_type(get_turf(user)) + if(!user.canUseTopic(src, TRUE, FALSE, TRUE)) + return + var/obj/vehicle/ridden/scooter/skateboard/S = new board_item_type(get_turf(user)) + S.buckle_mob(user) qdel(src) /obj/item/melee/skateboard/pro @@ -509,7 +512,6 @@ for further reading, please see: https://github.com/tgstation/tgstation/pull/301 icon_state = "skateboard2" item_state = "skateboard2" board_item_type = /obj/vehicle/ridden/scooter/skateboard/pro - custom_premium_price = 300 /obj/item/melee/skateboard/hoverboard name = "hoverboard" @@ -517,7 +519,6 @@ for further reading, please see: https://github.com/tgstation/tgstation/pull/301 icon_state = "hoverboard_red" item_state = "hoverboard_red" board_item_type = /obj/vehicle/ridden/scooter/skateboard/hoverboard - custom_premium_price = 2015 /obj/item/melee/skateboard/hoverboard/admin name = "\improper Board Of Directors" diff --git a/code/modules/vehicles/scooter.dm b/code/modules/vehicles/scooter.dm index d60201eec8..fc77272fc4 100644 --- a/code/modules/vehicles/scooter.dm +++ b/code/modules/vehicles/scooter.dm @@ -45,7 +45,6 @@ icon_state = "skateboard" density = FALSE arms_required = 0 - fall_off_if_missing_arms = FALSE var/datum/effect_system/spark_spread/sparks ///Whether the board is currently grinding var/grinding = FALSE @@ -108,7 +107,7 @@ H.adjustOrganLoss(ORGAN_SLOT_BRAIN, 5) H.updatehealth() visible_message("[src] crashes into [A], sending [H] flying!") - H.Paralyze(80) + H.Knockdown(80) else var/backdir = turn(dir, 180) vehicle_move(backdir) @@ -127,7 +126,7 @@ var/atom/throw_target = get_edge_target_turf(src, pick(GLOB.cardinals)) L.throw_at(throw_target, 2, 2) visible_message("[L] loses [L.p_their()] footing and slams on the ground!") - L.Paralyze(40) + L.Knockdown(40) grinding = FALSE icon_state = board_icon return diff --git a/code/modules/vehicles/vehicle_actions.dm b/code/modules/vehicles/vehicle_actions.dm index fa6df2b74b..5de2c8961f 100644 --- a/code/modules/vehicles/vehicle_actions.dm +++ b/code/modules/vehicles/vehicle_actions.dm @@ -185,7 +185,7 @@ playsound(src, 'sound/effects/bang.ogg', 20, TRUE) V.unbuckle_mob(L) L.throw_at(landing_turf, 2, 2) - L.Paralyze(40) + L.Knockdown(40) V.visible_message("[L] misses the landing and falls on [L.p_their()] face!") else L.spin(4, 1) diff --git a/icons/obj/items_and_weapons.dmi b/icons/obj/items_and_weapons.dmi index e3540a782b..d92b692775 100644 Binary files a/icons/obj/items_and_weapons.dmi and b/icons/obj/items_and_weapons.dmi differ