mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 23:27:34 +01:00
Converts Killer Tomatoes to Basic Mobs (#75516)
Just another lightweight PR porting over a simple animal to the basic mob framework with zero additional AI implementation (it's a killer tomato- it spawns into the world to maul you. how much more intricate does it need to be?).
This commit is contained in:
@@ -1132,7 +1132,7 @@
|
||||
* Upon using strange reagent on a tray, it will spawn a killer tomato or killer tree at random.
|
||||
*/
|
||||
/obj/machinery/hydroponics/proc/spawnplant() // why would you put strange reagent in a hydro tray you monster I bet you also feed them blood
|
||||
var/list/livingplants = list(/mob/living/basic/tree, /mob/living/simple_animal/hostile/killertomato)
|
||||
var/list/livingplants = list(/mob/living/basic/tree, /mob/living/basic/killer_tomato)
|
||||
var/chosen = pick(livingplants)
|
||||
var/mob/living/C = new chosen(get_turf(src))
|
||||
C.faction = list(FACTION_PLANTS)
|
||||
|
||||
@@ -439,6 +439,15 @@
|
||||
spawned_simplemob.melee_damage_lower += round(our_seed.potency * mob_melee_multiplier)
|
||||
spawned_simplemob.melee_damage_upper += round(our_seed.potency * mob_melee_multiplier)
|
||||
spawned_simplemob.move_to_delay -= round(our_seed.production * mob_speed_multiplier)
|
||||
|
||||
if(isbasicmob(spawned_mob))
|
||||
var/mob/living/basic/spawned_basicmob = spawned_mob
|
||||
spawned_basicmob.melee_damage_lower += round(our_seed.potency * mob_melee_multiplier)
|
||||
spawned_basicmob.melee_damage_upper += round(our_seed.potency * mob_melee_multiplier)
|
||||
// basic mob speeds aren't exactly equivalent to simple animal's "move to delay" but this seems balanced enough.
|
||||
var/calculated_speed = initial(spawned_basicmob.speed) - round((our_seed.production * mob_speed_multiplier), 0.01)
|
||||
spawned_basicmob.set_varspeed(calculated_speed)
|
||||
|
||||
our_plant.forceMove(our_plant.drop_location())
|
||||
spawned_mob.visible_message(span_notice("[our_plant] growls as it suddenly awakens!"))
|
||||
qdel(our_plant)
|
||||
@@ -446,7 +455,7 @@
|
||||
/// Killer Tomato's transformation gene.
|
||||
/datum/plant_gene/trait/mob_transformation/tomato
|
||||
dangerous = TRUE
|
||||
killer_plant = /mob/living/simple_animal/hostile/killertomato
|
||||
killer_plant = /mob/living/basic/killer_tomato
|
||||
mob_health_multiplier = 0.33
|
||||
mob_melee_multiplier = 0.1
|
||||
mob_speed_multiplier = 0.02
|
||||
|
||||
Reference in New Issue
Block a user