Skip to content

Commit

Permalink
Merge pull request #6733 from MahtraDR/add_bush
Browse files Browse the repository at this point in the history
[scripts][safe-room] Add 'bush' to plant types
  • Loading branch information
MahtraDR authored Nov 16, 2023
2 parents adcce18 + b661afc commit bde9102
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions safe-room.lic
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ class SafeRoom

DRC.release_invisibility

if /.*vela.tohr (\w+)/ =~ DRRoom.room_objs.grep(/vela'tohr (plant|thicket)/).to_s
if /.*vela.tohr (\w+)/ =~ DRRoom.room_objs.grep(/vela'tohr (plant|thicket|bush)/).to_s
fput("touch #{Regexp.last_match(1)}")
end

Expand Down Expand Up @@ -265,10 +265,10 @@ class SafeRoom
return false unless empath

DRCT.walk_to room_id
return false unless DRRoom.pcs.include?(empath) || DRRoom.room_objs.grep(/vela'tohr (plant|thicket)/)
return false unless DRRoom.pcs.include?(empath) || DRRoom.room_objs.grep(/vela'tohr (plant|thicket|bush)/)

unless DRRoom.pcs.include?(empath)
if /.*vela.tohr (\w+)/ =~ DRRoom.room_objs.grep(/vela'tohr (plant|thicket)/).to_s
if /.*vela.tohr (\w+)/ =~ DRRoom.room_objs.grep(/vela'tohr (plant|thicket|bush)/).to_s
fput("touch #{Regexp.last_match(1)}")
end
end
Expand Down

0 comments on commit bde9102

Please sign in to comment.