mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 05:27:01 +01:00
* Basic mobs core implementation and cow migration. * fix whitespace * uncomfortable fix for null weirdness * update updatepaths script number * lewc review 1 * fix delta * Update code/datums/ai/basic_mobs/basic_ai_behaviors/tipped_reaction.dm Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com> Signed-off-by: warriorstar-orion <orion@snowfrost.garden> --------- Signed-off-by: warriorstar-orion <orion@snowfrost.garden> Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
16 lines
697 B
Plaintext
16 lines
697 B
Plaintext
/// Datum for basic mobs to define what they can attack.
|
|
/// Global, just like ai_behaviors.
|
|
/// Meant to be subtyped into different kinds of targeting strategies.
|
|
/datum/targeting_strategy
|
|
|
|
/// Returns true or false depending on if the target can be attacked by the mob.
|
|
/datum/targeting_strategy/proc/can_attack(mob/living/living_mob, atom/target, vision_range)
|
|
return
|
|
|
|
/// Returns something the target might be hiding inside of.
|
|
/datum/targeting_strategy/proc/find_hidden_mobs(mob/living/living_mob, atom/target)
|
|
var/atom/target_hiding_location
|
|
if(istype(target.loc, /obj/structure) || istype(target.loc, /obj/machinery))
|
|
target_hiding_location = target.loc
|
|
return target_hiding_location
|