vrtc / honeydew (public) (License: CC0) (since 2023-12-20) (hash sha1)
Warcraft 3: The Frozen Throne 1.27 custom scenario.
List of commits:
Subject Hash Author Date (UTC)
fix: spell Attunement uses ability id for effects 93f15ee614ce5958f2a52a8fbc336c8938b40b09 Vladyslav Bondarenko 2023-12-27 08:57:29
feat!: add spell Arcane Lance base e164d3c3f3f69230dbb9b1e5045c551f5870337d Vladyslav Bondarenko 2023-12-23 23:23:58
nightly: 0.1-WIP c97814a5f138ed20958a7a1f88f5c2c6a2081906 Vladyslav Bondarenko 2023-12-22 04:08:33
doc: add note to self about computer users 40c8b325bce404489c03ab0a8db90cadbc008ae3 Vladyslav Bondarenko 2023-12-22 04:05:26
feat: add simple test scripts 9bb401206b8187fe06ae9b3d2309e1244cea3c36 Vladyslav Bondarenko 2023-12-22 04:03:25
feat: add spell Attunement 29062f0810e8e239f37639973a48b187d0b81e4a Vladyslav Bondarenko 2023-12-22 03:58:59
feat!: add spell Dampening Field 61ddc9409c00c79ee947578291c21eaa701f41e2 Vladyslav Bondarenko 2023-12-22 01:38:15
stash amend this 050948decf45ea58dd25b0eddf62d1593ed4460f Vladyslav Bondarenko 2023-12-21 07:39:33
fix!: patch map script correctly 3a8cb9ba68d82685dce420659416d36b00e06ac8 Vladyslav Bondarenko 2023-12-21 01:15:05
fix: typo in Makefile 7fd84f0bd1d63c2218c4f72f96ea2297f204a223 Vladyslav Bondarenko 2023-12-21 01:00:47
build: complicate Makefile bff3fe00560b3afe70a869e2859d665367b4f62d Vladyslav Bondarenko 2023-12-21 00:52:56
fix!: declare Jass module user correctly c7f6b810ca76a7eee47213061a0740039ec95cec Vladyslav Bondarenko 2023-12-21 00:50:29
doc: add macro preprocessor caveat 651bad90dfe868626b5aa19331f674b9981f1dee Vladyslav Bondarenko 2023-12-20 01:55:27
doc: add macro preprocessor caveat 886e7960b79f1f13acd2359c44715dc157c6d7cf Vladyslav Bondarenko 2023-12-20 01:55:27
fix: fix typo in Makefile 652c3bd4a70f9f215a8f6824bc689596d173b85a Vladyslav Bondarenko 2023-12-20 01:33:56
doc: add basic build instructions 0fbeb1f61f266b7430d9365e3c282e64f751487d Vladyslav Bondarenko 2023-12-20 01:32:07
feat: add script dependency declarations 4dc32d10ed485bc6fd6856bffa269d4dcd2be4e0 Vladyslav Bondarenko 2023-12-20 01:30:33
feat!: improve Jass preprocessor ef275cd4087e2023c7107583685a5d1e40395786 Vladyslav Bondarenko 2023-12-20 01:21:07
feat: add arcane blast spell 1c2e8853a32b2c35ffdb1ea9d2342ff9bd9b8669 Vladyslav Bondarenko 2023-12-19 13:07:09
fix: unique hero per player c7910812bf1957513aab9067e817ca57634d4834 Vladyslav Bondarenko 2023-12-19 13:05:50
Commit 93f15ee614ce5958f2a52a8fbc336c8938b40b09 - fix: spell Attunement uses ability id for effects
Use ability id to retrieve paths to effect files for Attunement spell.
Additionally, hide unit corpses when they are killed by a caster under
Attunement's effect.
Author: Vladyslav Bondarenko
Author date (UTC): 2023-12-27 08:57
Committer name: Vladyslav Bondarenko
Committer date (UTC): 2023-12-27 08:57
Parent(s): e164d3c3f3f69230dbb9b1e5045c551f5870337d
Signer:
Signing key: EFF9624877D25D02
Signing status: E
Tree: 6d41a02a181c5034fa64cad6c2286c60cd42eabd
File Lines added Lines deleted
src/atun.j 15 3
File src/atun.j changed (mode: 100644) (index 5d2cfc9..99448e7)
2 2
3 3 globals globals
4 4 constant integer ATUN_ABILITY_ID = 'A003' constant integer ATUN_ABILITY_ID = 'A003'
5 constant integer ATUN_RESTORE_MANA_ABILITY_ID = 'AIm1'
6 5
7 6 constant real ATUN_RESTORE_MANA_BASE = 25.0 constant real ATUN_RESTORE_MANA_BASE = 25.0
8 7 constant real ATUN_RESTORE_MANA_COEF = 25.0 constant real ATUN_RESTORE_MANA_COEF = 25.0
 
... ... endglobals
13 12 function atun_mana_restore_amount_get takes unit caster, unit victim returns real function atun_mana_restore_amount_get takes unit caster, unit victim returns real
14 13 local effect e = null local effect e = null
15 14
15 local location t = null
16
16 17 local integer ability_level = 0 local integer ability_level = 0
17 18 local real mana = 0.0 local real mana = 0.0
18 19
 
... ... function atun_mana_restore_amount_get takes unit caster, unit victim returns rea
45 46 set mana = RMinBJ(RMaxBJ(ATUN_RESTORE_MANA_MIN, mana), ATUN_RESTORE_MANA_MAX) set mana = RMinBJ(RMaxBJ(ATUN_RESTORE_MANA_MIN, mana), ATUN_RESTORE_MANA_MAX)
46 47
47 48 if mana > 0.0 then if mana > 0.0 then
48 set e = AddSpellEffectTargetById('Ambd', EFFECT_TYPE_TARGET, victim, "origin")
49 // TODO src/atun.j: add persistent ash pile effect
50 // TODO src/atun.j: add floating test showing amount of mana restored
51 set t = GetUnitLoc(victim)
52 set e = AddSpellEffectByIdLoc(ATUN_ABILITY_ID, EFFECT_TYPE_TARGET, t)
53 call RemoveLocation(t)
49 54 call DestroyEffect(e) call DestroyEffect(e)
55 // Assume the victim is dead at this point.
56 // Killing and exploding the unit is for graphics only here.
57 if not IsUnitType(victim, UNIT_TYPE_HERO) then
58 call SetUnitExploded(victim, true)
59 call KillUnit(victim)
60 call ShowUnit(victim, false)
61 endif
50 62 endif endif
51 63
52 64 return mana return mana
 
... ... function atun_mana_restore takes unit u, real mana returns nothing
64 76 set b = GetUnitState(u, UNIT_STATE_MANA) set b = GetUnitState(u, UNIT_STATE_MANA)
65 77
66 78 if b > a then if b > a then
67 set i = ATUN_RESTORE_MANA_ABILITY_ID
79 set i = ATUN_ABILITY_ID
68 80 set e = AddSpellEffectTargetById(i, EFFECT_TYPE_CASTER, u, "origin") set e = AddSpellEffectTargetById(i, EFFECT_TYPE_CASTER, u, "origin")
69 81 call DestroyEffect(e) call DestroyEffect(e)
70 82 endif endif
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/vrtc/honeydew

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/vrtc/honeydew

Clone this repository using git:
git clone git://git.rocketgit.com/user/vrtc/honeydew

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main