UtBS Hide Dark Assassin's race until uncloacked (#6302)

This commit is contained in:
Descacharrado 2021-12-04 20:35:23 +01:00 committed by GitHub
parent d0ee13455c
commit 22e5a0adb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 51 additions and 67 deletions

View file

@ -964,7 +964,7 @@
[/store_locations]
[unit]
type=Dark Assassin1
type=Dark Assassin Cloaked
id=Cloaked Figure
name= _ "Cloaked Figure"
side=5
@ -976,6 +976,20 @@
{TRAIT_RESILIENT}
[/modifications]
[/unit]
{STORE_UNIT_VAR (id="Cloaked Figure") max_hitpoints temp}
{VARIABLE_OP temp sub 16}
{MODIFY_UNIT (id="Cloaked Figure") max_hitpoints $temp}
{MODIFY_UNIT (id="Cloaked Figure") hitpoints $temp}
{CLEAR_VARIABLE temp}
[modify_unit]
[filter]
id=Cloaked Figure
[/filter]
[effect]
apply_to=attack
increase_damage=-1
[/effect]
[/modify_unit]
{CLEAR_VARIABLE dark_assassin_location}
[delay]

View file

@ -2066,7 +2066,7 @@
[/store_locations]
[unit]
type=Dark Assassin2
type=Dark Assassin Cloaked
id=Cloaked Figure
name= _ "Cloaked Figure"
side=7
@ -2078,6 +2078,11 @@
{TRAIT_RESILIENT}
[/modifications]
[/unit]
{STORE_UNIT_VAR (id="Cloaked Figure") max_hitpoints temp}
{VARIABLE_OP temp sub 8}
{MODIFY_UNIT (id="Cloaked Figure") max_hitpoints $temp}
{MODIFY_UNIT (id="Cloaked Figure") hitpoints $temp}
{CLEAR_VARIABLE temp}
[micro_ai]
side=7

View file

@ -2370,7 +2370,7 @@
[/remove_shroud]
[unit]
type=Dark Assassin3
type=Dark Assassin Cloaked
id=Cloaked Figure
name= _ "Cloaked Figure"
side=7

View file

@ -1,18 +0,0 @@
#textdomain wesnoth-utbs
[unit_type]
[base_unit]
id=Dark Assassin1
[/base_unit]
id=Dark Assassin2
hitpoints=60 # +8 from Dark Assassin1
hide_help=yes
do_not_list=yes
[attack]
# Change first attack (scythe)
damage=10 # +1 from Dark Assassin1
[/attack]
[attack]
# Change second attack (darts)
damage=7 # +1 from Dark Assassin1
[/attack]
[/unit_type]

View file

@ -1,19 +0,0 @@
#textdomain wesnoth-utbs
[unit_type]
[base_unit]
id=Dark Assassin1
[/base_unit]
id=Dark Assassin3
hitpoints=68 # +16 from Dark Assassin1
hide_help=yes
do_not_list=yes
[attack]
# Change first attack (scythe)
damage=10 # +1 from Dark Assassin1
[/attack]
[attack]
# Change second attack (darts)
damage=7 # +1 from Dark Assassin1
[/attack]
[/unit_type]

View file

@ -0,0 +1,9 @@
[unit_type]
[base_unit]
id=Dark Assassin Uncloaked
[/base_unit]
id=Dark Assassin Cloaked
race=hidden_race
image=units/other/dark-assassin.png
profile=portraits/cloaked.png
[/unit_type]

View file

@ -1,9 +1,11 @@
#textdomain wesnoth-utbs
[unit_type]
id=Dark Assassin1
id=Dark Assassin Uncloaked
name= _ "Dark Assassin"
race=quenoth
image=units/other/dark-assassin.png
do_not_list=yes
image=units/other/dark-assassin-uncloaked.png
profile=portraits/uncloaked.png
[defend]
start_time=-126
hits=yes
@ -22,8 +24,7 @@
image=units/other/dark-assassin-defend-1.png:1,units/other/dark-assassin-defend-2-miss.png:250,units/other/dark-assassin-defend-1.png:1
[/frame]
[/defend]
profile=portraits/cloaked.png
hitpoints=52
hitpoints=68
movement_type=elusivefoot
movement=6
experience=100
@ -40,7 +41,7 @@
icon=attacks/blade-curved.png
type=blade
range=melee
damage=9
damage=10
number=3
[/attack]
[attack]
@ -49,7 +50,7 @@
icon=attacks/dagger-thrown-poison-human.png
type=blade
range=ranged
damage=6
damage=7
number=4
[specials]
{WEAPON_SPECIAL_POISON}

View file

@ -1,21 +0,0 @@
#textdomain wesnoth-utbs
[unit_type]
[base_unit]
id=Dark Assassin1
[/base_unit]
id=Dark Assassin Uncloaked
image=units/other/dark-assassin-uncloaked.png
profile=portraits/uncloaked.png
hitpoints=68 # +16 from Dark Assassin1
hide_help=yes
do_not_list=yes
[attack]
# Change first attack (melee)
damage=10 # +1 from Dark Assassin1
[/attack]
[attack]
# Change second attack (ranged)
damage=7 # +1 from Dark Assassin1
[/attack]
[/unit_type]

View file

@ -11,6 +11,19 @@
{ELVISH_NAMES}
{TRAIT_DEXTROUS}
[/race]
[race]
id=hidden_race
male_name= _ "Unknown"
female_name= _ "Unknown"
plural_name= _ "Unknown"
description="<img>src=units/unknown-unit.png~RC(magenta>red) align=left float=yes</img>" + _ "
The race of this unit cannot be revealed yet. You must discover it in the game to be allowed to see its description."
num_traits=2
markov_chain_size=2
{ELVISH_NAMES}
{TRAIT_DEXTROUS}
[/race]
#desert elves move fast across the sands, but are not used to forests
#they are also a bit faster in caves