Project

General

Profile

Feature #57 » 0028-Granularity-Demonstrate-Bombard-mission.patch

main - Marko Lindqvist, 12/13/2023 06:57 AM

View differences:

data/granularity/actions.ruleset
; the actor unit. The special value "unlimited" lifts the maximum distance
; restriction. The maximum distance can`t be smaller than the minimum
; distance.
bombard_max_range = 1
bombard_max_range = 8
; The maximum distance from the actor unit to the target of the "Bombard 2"
; action. The value 1 means that the targets must be on a tile adjacent to
......
"UnitState", "Transported", "Local", FALSE
}
[actionenabler_bombard]
action = "Bombard"
actor_reqs =
{ "type", "name", "range", "present"
"UnitClass", "Air", "Local", TRUE
}
[actionenabler_gain_veterancy]
action = "Gain Veterancy"
actor_reqs =
data/granularity/effects.ruleset
"Action", "Teleport", "Local", TRUE
}
[effect_action_success_bombard]
type = "Action_Success_Actor_Move_Cost"
value = 100
reqs =
{ "type", "name", "range", "present"
"Action", "Bombard", "Local", TRUE
}
[effect_no_tools]
type = "Output_Bonus"
value = -50
data/granularity/units.ruleset
hitpoints = 30
firepower = 1
move_rate = 100
bombard_rate = 5
vision_radius_sq = 2
transport_cap = 0
fuel = 0
(1-1/2)