Skip to content

Commit

Permalink
Merge pull request #6 from WorldOfDarknessXIII/master
Browse files Browse the repository at this point in the history
Merge1
  • Loading branch information
Discozavisim authored Jan 13, 2025
2 parents b78b6df + 1e467d4 commit 5557f4f
Show file tree
Hide file tree
Showing 11 changed files with 60 additions and 7 deletions.
3 changes: 2 additions & 1 deletion code/__HELPERS/game.dm
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,8 @@
return candidates

for(var/mob/dead/observer/G in GLOB.player_list)
candidates += G
if(!G.auspex_ghosted) //No Auspex ghosts as candidates.
candidates += G

return pollCandidates(Question, jobbanType, gametypeCheck, be_special_flag, poll_time, ignore_category, flashwindow, candidates)

Expand Down
5 changes: 3 additions & 2 deletions code/datums/components/crafting/crafting.dm
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,9 @@
return GLOB.not_incapacitated_turf_state

//For the UI related things we're going to assume the user is a mob rather than typesetting it to an atom as the UI isn't generated if the parent is an atom
/datum/component/personal_crafting/ui_interact(mob/user, datum/tgui/ui)
/datum/component/personal_crafting/ui_interact(mob/user, datum/tgui/ui, var/open_ui = TRUE)
ui = SStgui.try_update_ui(user, src, ui)
if(!ui)
if(!ui && open_ui)
cur_category = categories[1]
if(islist(categories[cur_category]))
var/list/subcats = categories[cur_category]
Expand Down Expand Up @@ -431,6 +431,7 @@
else
to_chat(user, "<span class='warning'>Construction failed[result]</span>")
busy = FALSE
ui_interact(user, open_ui = FALSE) //Update the UI again as soon as possible after the UI is no longer busy, but don't open it again if it got closed.
if("toggle_recipes")
display_craftable_only = !display_craftable_only
. = TRUE
Expand Down
1 change: 1 addition & 0 deletions code/modules/vending/boozeomat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
/obj/machinery/vending/boozeomat/all_access
desc = "A technological marvel, supposedly able to mix just the mixture you'd like to drink the moment you ask for one. This model appears to have no access restrictions."
req_access = null
onstation = FALSE

/obj/machinery/vending/boozeomat/syndicate_access
req_access = list(ACCESS_SYNDICATE)
Expand Down
6 changes: 6 additions & 0 deletions code/modules/vtmb/gridventory.dm
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ VENTORY!
if(!bound_underlay)
bound_underlay = generate_bound_underlay(stored_item.grid_width, stored_item.grid_height)
underlay_appearances_by_size["[stored_item.grid_width]x[stored_item.grid_height]"] = bound_underlay
stored_item.underlays = null
stored_item.underlays += bound_underlay
screen_loc = LAZYACCESSASSOC(master.item_to_grid_coordinates, stored_item, 1)
screen_loc = master.grid_coordinates_to_screen_loc(screen_loc)
Expand All @@ -191,6 +192,7 @@ VENTORY!
if(!bound_underlay)
bound_underlay = generate_bound_underlay(stored_item.grid_width, stored_item.grid_height)
underlay_appearances_by_size["[stored_item.grid_width]x[stored_item.grid_height]"] = bound_underlay
stored_item.underlays = null
stored_item.underlays += bound_underlay
screen_loc = LAZYACCESSASSOC(master.item_to_grid_coordinates, stored_item, 1)
screen_loc = master.grid_coordinates_to_screen_loc(screen_loc)
Expand Down Expand Up @@ -1038,6 +1040,10 @@ VENTORY!
grid_width = 5 GRID_BOXES
grid_height = 2 GRID_BOXES

/obj/item/gun/ballistic/automatic/vampire/autoshotgun
grid_width = 5 GRID_BOXES
grid_height = 2 GRID_BOXES

/obj/item/gun/ballistic/automatic/vampire/sniper
grid_width = 4 GRID_BOXES
grid_height = 2 GRID_BOXES
Expand Down
Binary file modified code/modules/wod13/48x32weapons.dmi
Binary file not shown.
Binary file modified code/modules/wod13/ammo.dmi
Binary file not shown.
15 changes: 12 additions & 3 deletions code/modules/wod13/ammostack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,25 @@
bare_wound_bonus = 10
wound_bonus = 5

/obj/projectile/beam/beam_rifle/vampire/vamp12g/pellet
/obj/projectile/beam/beam_rifle/vampire/vamp12g/on_hit(atom/target, blocked = FALSE)
. = ..()
if(iscarbon(target))
var/mob/living/carbon/M = target
M.Stun(25)

/obj/projectile/beam/beam_rifle/vampire/shotpellet
name = "12g shotgun pellet"
damage = 9
range = 22 //range of where you can see + one screen after
armour_penetration = 15
bare_wound_bonus = 5
wound_bonus = 0

/obj/projectile/beam/beam_rifle/vampire/vamp12g/on_hit(atom/target, blocked = FALSE)
. = ..()
if(iscarbon(target))
var/mob/living/carbon/M = target
M.Stun(20)
M.Stun(4)

/obj/projectile/beam/beam_rifle/vampire/vamp556mm/incendiary
armour_penetration = 0
Expand Down Expand Up @@ -191,7 +200,7 @@

/obj/item/ammo_casing/vampire/c12g/buck
desc = "A 12g shell casing (00 buck)."
projectile_type = /obj/projectile/beam/beam_rifle/vampire/vamp12g/pellet
projectile_type = /obj/projectile/beam/beam_rifle/vampire/shotpellet
pellets = 8
variance = 25

Expand Down
37 changes: 36 additions & 1 deletion code/modules/wod13/guns.dm
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,41 @@
inhand_x_dimension = 32
inhand_y_dimension = 32

/obj/item/ammo_box/magazine/vampautoshot
name = "shotgun magazine (12ga)"
icon = 'code/modules/wod13/ammo.dmi'
lefthand_file = 'code/modules/wod13/righthand.dmi'
righthand_file = 'code/modules/wod13/lefthand.dmi'
worn_icon = 'code/modules/wod13/worn.dmi'
onflooricon = 'code/modules/wod13/onfloor.dmi'
icon_state = "spas15"
ammo_type = /obj/item/ammo_casing/vampire/c12g/buck
caliber = CALIBER_12G
max_ammo = 6
multiple_sprites = AMMO_BOX_FULL_EMPTY

/obj/item/gun/ballistic/automatic/vampire/autoshotgun
name = "\improper Jaegerspas-XV"
desc = "A semi-automatic shotgun. It looks more like an assault rifle than a shotgun and fires at a deadly pace."
icon = 'code/modules/wod13/48x32weapons.dmi'
icon_state = "spas15"
inhand_icon_state = "spas15"
worn_icon_state = "rifle"
w_class = WEIGHT_CLASS_BULKY
mag_type = /obj/item/ammo_box/magazine/vampautoshot
burst_size = 1
fire_delay = 2
spread = 4
bolt_type = BOLT_TYPE_LOCKING
show_bolt_icon = FALSE
mag_display = TRUE
fire_sound = 'code/modules/wod13/sounds/pomp.ogg'
slot_flags = ITEM_SLOT_BACK
projectile_damage_multiplier = 0.9
masquerade_violating = TRUE
recoil = 6
cost = 500

/obj/item/gun/ballistic/shotgun/toy/crossbow/vampire
name = "crossbow"
desc = "Welcome to the Middle Ages!"
Expand Down Expand Up @@ -669,4 +704,4 @@
oil = max(0, oil-10)
if(oil == 0)
icon_state = "flamethrower1"
new /obj/effect/fire(F)
new /obj/effect/fire(F)
Binary file modified code/modules/wod13/lefthand.dmi
Binary file not shown.
Binary file modified code/modules/wod13/onfloor.dmi
Binary file not shown.
Binary file modified code/modules/wod13/righthand.dmi
Binary file not shown.

0 comments on commit 5557f4f

Please sign in to comment.