UtBS S12: Make alien central body vulnerability more visible to player

This commit is contained in:
doofus-01 2018-06-10 20:55:20 -07:00 committed by Charles Dang
parent 4fca052085
commit ad53608e42
2 changed files with 89 additions and 10 deletions

View file

@ -748,12 +748,18 @@
# create main body unit here
[unit]
type=Central Body
type=Central Body1
id=Yechnagoth
name= _ "Yechnagoth"
side=2
x,y=10,10
[/unit]
#define UTBS_YECH_CS
CS(-240,30,20)#enddef
[item]
halo=halo/illuminates-aura.png~{UTBS_YECH_CS}
x,y=10,10
[/item]
# add roots around central body
@ -1019,6 +1025,7 @@
[/event]
# Event 3: Central Body heals fully each turn
# let's move this to the unit type, rather than an event, so there are some indications for the player that tactics like poison won't work.
[event]
name=new turn
@ -1051,12 +1058,12 @@
value=$stored_alien.hitpoints
[/set_variable]
[modify_unit]
[filter]
type=Central Body
[/filter]
hitpoints=$this_unit.max_hitpoints
[/modify_unit]
# [modify_unit]
# [filter]
# type=Central Body
# [/filter]
# hitpoints=$this_unit.max_hitpoints
# [/modify_unit]
[if]
[variable]
@ -1191,6 +1198,54 @@
# Event 5: When player destroys all 3 Pulsing Spires, Central Body is weakened
[event]
name=die
first_time_only=no
[filter]
type=Pulsing Spire
[/filter]
[filter_condition]
[have_unit]
type=Pulsing Spire
count=2
[/have_unit]
[/filter_condition]
[remove_item]
x,y=10,10
[/remove_item]
[item]
halo=halo/illuminates-aura.png~{UTBS_YECH_CS}:500,halo/illuminates-aura.png~{UTBS_YECH_CS}~O(0.6):100
x,y=10,10
[/item]
[/event]
[event]
name=die
first_time_only=no
[filter]
type=Pulsing Spire
[/filter]
[filter_condition]
[have_unit]
type=Pulsing Spire
count=1
[/have_unit]
[/filter_condition]
[remove_item]
x,y=10,10
[/remove_item]
[item]
halo=halo/illuminates-aura.png~{UTBS_YECH_CS}~O(0.6):200,halo/illuminates-aura.png~{UTBS_YECH_CS}~O(0.2):400
x,y=10,10
[/item]
[/event]
[event]
name=die
first_time_only=no
@ -1206,6 +1261,9 @@
[/have_unit]
[/filter_condition]
[remove_item]
x,y=10,10
[/remove_item]
[fire_event]
name=yechnagoth_vulnerate
[/fire_event]
@ -1247,7 +1305,7 @@
[/message]
[kill]
type=Central Body
type=Central Body1
animate=no
fire_event=no
[/kill]

View file

@ -1,7 +1,7 @@
#textdomain wesnoth-utbs
# This is the Alien Central Body with his immune to attacks
[unit_type]
id=Central Body
id=Central Body Base
name= _ "Central Body"
race=monster
image=units/alien/core-compact.png
@ -87,7 +87,28 @@
# This is the Alien Central Body which is vulnerable to attacks
[unit_type]
[base_unit]
id=Central Body
id=Central Body Base
[/base_unit]
id=Central Body1
hide_help=yes
do_not_list=yes
[abilities]
[regenerate]
value=100
id=regenerates_yec
name= _ "alien regenerates"
female_name= _ "female^alien regenerates"
description= _ "The unit will heal itself 100 HP per turn. If it is poisoned, it will remove the poison instead of healing."
affect_self=yes
poison=cured
[/regenerate]
[/abilities]
[/unit_type]
# This is the Alien Central Body which is vulnerable to attacks
[unit_type]
[base_unit]
id=Central Body Base
[/base_unit]
id=Central Body2
name= _ "Weakened Central Body"