Fix and tweak parrot behaviour (#13652)

* Fix and tweak parrot behaviour

Parrot stolen item now renders under the parrot's icon to make it more clear when it holds something - remember to harm the parrot to make it drop the item
Parrot adjacency checks now take windows into account - this fixes issues where the parrot would teleport behind a window to perch/steal an item
Parrots no longer try to perch/steal an item in a turf that is inaccessible to them infinitely, causing them to be stuck
Add emotes when parrot drops item
Change default parrot name to not be improper
Clean up code where possible
Correct grammar errors in parrot messages
Fix attacking parrots in harm mode not triggering specific behaviour

* Code cleanup, CanAStarPassTo atom proc

* Fix Travis

* Address farie

* Address farie 2

* fix atkverb confusion

* use LAZYINITLIST

* remove some out of scope defaults
This commit is contained in:
dearmochi
2021-02-10 22:41:41 +00:00
committed by GitHub
parent c4b1c724aa
commit 617e62b66f
5 changed files with 208 additions and 150 deletions
+2 -1
View File
@@ -21,9 +21,9 @@ GLOBAL_DATUM_INIT(fire_overlay, /image, image("icon" = 'icons/goonstation/effect
can_be_hit = FALSE
suicidal_hands = TRUE
var/list/attack_verb //Used in attackby() to say how something was attacked "[x] has been [z.attack_verb] by [y] with [z]"
var/hitsound = null
var/usesound = null
var/list/attack_verb //Used in attackby() to say how something was attacked "[x] has been [z.attack_verb] by [y] with [z]"
var/throwhitsound
var/w_class = WEIGHT_CLASS_NORMAL
var/slot_flags = 0 //This is used to determine on which slots an item can fit.
@@ -115,6 +115,7 @@ GLOBAL_DATUM_INIT(fire_overlay, /image, image("icon" = 'icons/goonstation/effect
hitsound = 'sound/items/welder.ogg'
if(damtype == "brute")
hitsound = "swing_hit"
LAZYINITLIST(attack_verb)
if(!move_resist)
determine_move_resist()